Desktop Functions: Smart Device Functions:
|
Search Results for "MAPI" in [All]iphlpapiicmpglu32opengl32
public static extern void glGetMapiv(uint target, uint query, int[] v); mapi32[DllImport(@"C:\Program Files\Microsoft Office\Office15\OLMAPI32.dll", EntryPoint = "HrGetAutoDiscoverXML", CharSet = CharSet.Unicode)] Call MAPIInitialize before this function. 15: INYOKLRH77P1BJBENOHOJWQJ870OTEMKVX5M2R6TUUFGQ2BWKZSGVQQPV7TWSI6920RVK9CPBASPWL0FERZBK6SLE6NZ6VD03VWR 16: MAPIAddress
/// The MAPIAddress function creates or modifies a set of address list entries.
[DllImport("MAPI32.DLL", CharSet=CharSet.Ansi)]
public static extern uint MAPIAddress(IntPtr lhSession, IntPtr ulUIParam, string lpszCaption, This is a COM object that is called through the RCW. Beware, the messaging team at MS will not support any calls to MAPI32.DLL or CDO 1.21 from managed code. Best bet, use Exchange 12's new Managed API. MSDN says that MAPI does not strictly adhere to the COM standard. Perhaps this is one reason why MS won't support this. 17: MAPIDeleteMail
/// The MAPIDeleteMail function deletes a message.
[DllImport("MAPI32.DLL", CharSet=CharSet.Ansi)]
public static extern uint MAPIDeleteMail(IntPtr lhSession, IntPtr ulUIParam, string lpszMessageID, 18: MAPIDetails
/// The MAPIDetails function displays a dialog box containing the details of a selected address list entry.
[DllImport("MAPI32.DLL", CharSet=CharSet.Ansi)]
public static extern uint MAPIDetails(IntPtr lhSession, IntPtr ulUIParam,
MapiRecipDesc lpRecip, uint flFlags, uint ulReserved); 19: MAPIFindNext
/// The MAPIFindNext function retrieves the next (or first) message identifier of a specified type
[DllImport("MAPI32.DLL", CharSet=CharSet.Ansi)]
public static extern uint MAPIFindNext(IntPtr lhSession, IntPtr ulUIParam, string lpszMessageType, 20: MAPIFreeBuffer
/// The MAPIFreeBuffer function frees a MAPI-allocated memory buffer.
[DllImport("MAPI32.DLL", CharSet=CharSet.Ansi)]
public static extern uint MAPIFreeBuffer(IntPtr lpBuffer); This function should always be used to free any storage structures returned by MAPI functions. 21: MAPIInitialize [DllImport(@"C:\Program Files\Microsoft Office\Office15\OLMAPI32.dll", EntryPoint = "MAPIInitialize", CharSet = CharSet.Unicode)] public static extern int MAPIInitialize(IntPtr lpMapiInit); int res = MAPIInitialize(IntPtr.Zero);
// do something useful with MAPI 22: MAPILogoff
/// The MAPILogoff function ends a session with the messaging system.
[DllImport("MAPI32.DLL", CharSet=CharSet.Ansi)]
private static extern uint MAPILogoff(IntPtr lhSession, IntPtr ulUIParam, uint flFlags, uint ulReserved);
''' The MAPILogoff function ends a session with the messaging system.
<DllImport("MAPI32.DLL", CharSet:=CharSet.Ansi)> _
Private Shared Function MAPILogoff(ByVal lhSession As IntPtr, ByVal ulUIParam As IntPtr, ByVal flFlags As UInteger, ByVal ulReserved As UInteger) As UInteger
errorCode = MAPILogoff( session, parentWindowPtr , 0, 0 );
errorCode = MAPILogoff(session, parentWindowPtr, 0, 0) 23: MAPILogon
/// The MAPILogon function begins a Simple MAPI session, loading the default message store
[DllImport("MAPI32.DLL", CharSet=CharSet.Ansi)]
public static extern uint MAPILogon(IntPtr ulUIParam, string lpszProfileName, string lpszPassword,
<DllImport("MAPI32.dll", SetLastError:=True)> _
Private Shared Function MAPILogon(ByVal uiParam As Integer, _ Microsoft Important Note: MAPI32 is not supported in a managed environment, memory leaks may be seen. Use the current alternatives: System.Net.Mail or WebDav or Exhange 2007 webservice interface.
uint error = MAPILogon(hwnd, null, null, MAPI_LOGON_UI, 0, ref session); 24: MapiMessage 25: MAPIReadMail
/// The MAPIReadMail function retrieves a message for reading.
[DllImport("MAPI32.DLL", CharSet=CharSet.Ansi)]
public static extern uint MAPIReadMail(IntPtr lhSession, IntPtr ulUIParam, string lpszMessageID,
<Runtime.InteropServices.DllImport("MAPI32.DLL", CharSet:=System.Runtime.InteropServices.CharSet.Ansi)> _
Public Shared Function MAPIReadMail(ByVal lhSession As IntPtr, ByVal ulUIParam As IntPtr, ByVal lpszMessageID As String, 26: MAPIResolveName
/// The MAPIResolveName function transforms a message recipient's name as entered by a user
[DllImport("MAPI32.DLL", CharSet=CharSet.Ansi)]
public static extern uint MAPIResolveName(IntPtr lhSession, IntPtr ulUIParam, string lpszName,
uint flFlags, uint ulReserved, ref MapiRecipDesc lppRecips);
MapiRecipDesc mpd = null;
MAPIResolveName(lhSessionNull, this.Handle, new String(textbox.Text.ToCharArray()), Mapi.MAPI_DIALOG, 0, ref mpd); 27: MAPISaveMail
/// The MAPISaveMail function saves a message into the message store.
[DllImport("MAPI32.DLL", CharSet=CharSet.Ansi)]
public static extern uint MAPISaveMail(IntPtr lhSession, IntPtr ulUIParam,
MapiMessage lpMessage, uint flFlags, uint ulReserved, string lpszMessageID);
/// The MAPISendDocuments function sends a standard message with one or more attached files and a cover note.
/// message. MAPISendDocuments differs from the MAPISendMail function in that it allows
[DllImport("MAPI32.DLL", CharSet=CharSet.Ansi)]
public static extern uint MAPISendDocuments(IntPtr ulUIParam, string lpszDelimChar, string lpszFullPaths, MAPISendDocuments (....); 29: MAPISendMail
/// The MAPISendMail function sends a message.
/// This function differs from the MAPISendDocuments function in that it allows greater
[DllImport("MAPI32.DLL", CharSet=CharSet.Ansi)]
public static extern uint MAPISendMail(IntPtr lhSession, IntPtr ulUIParam,
MapiMessage lpMessage, uint flFlags, uint ulReserved);
<DllImport("MAPI32.DLL")> _
Private Shared Function MAPISendMail(ByVal sess As IntPtr, ByVal hwnd As IntPtr, ByVal message As MapiMessage, This signature is valid, if the MapiMessage is defined as a class. If MapiMessage is defined as a structure a 'ref' has to be added before 'MapiMessage lpMessage' parameter Watch it! MAPI32 is not supported from managed code [http://blogs.msdn.com/mstehle/archive/2007/10/03/fyi-why-are-mapi-and-cdo-1-21-not-supported-in-managed-net-code.aspx]
[DllImport("MAPI32.DLL")]
static extern int MAPISendMail(IntPtr sess, IntPtr hwnd, MapiMessage message, int flg, int rsv);
MapiMessage msg = new MapiMessage();
int result = MAPISendMail(new IntPtr(0), new IntPtr(0), msg, 0x00000001 | 0x00000008, 0);
int size = Marshal.SizeOf(typeof(MapiFileDesc));
MapiFileDesc mapiFileDesc = new MapiFileDesc();
mapiFileDesc.position = -1;
mapiFileDesc.name = Path.GetFileName(fileName);
mapiFileDesc.path = fileName;
Marshal.StructureToPtr(mapiFileDesc, (IntPtr)ptr, false);
public class MapiMessage
public class MapiFileDesc 30: MAPIUninitialize [DllImport(@"C:\Program Files\Microsoft Office\Office15\OLMAPI32.dll", EntryPoint = "MAPIUninitialize", CharSet = CharSet.Unicode)] public static extern void MAPIUninitialize(); int res = MAPIInitialize(IntPtr.Zero);
// do something useful with MAPI
// call MAPIUninitialize after the work with MAPI
MAPIUninitialize(); dwmapi33: DwmDefWindowProc
[DllImport("dwmapi.dll")]
<DllImport("dwmapi.dll")> _
[DllImport("dwmapi.dll")]
<DllImport("dwmapi.dll")> _
[DllImport("dwmapi.dll", PreserveSig = false)]
<DllImport("dwmapi.dll")> _
[DllImport("dwmapi.dll")]
<DllImport("dwmapi.dll")> _
[DllImport("dwmapi.dll", PreserveSig = false)]
<DllImport("dwmapi.dll")> _
[DllImport("dwmapi.dll", EntryPoint = "#127", PreserveSig = false)]
[DllImport("dwmapi.dll", EntryPoint = "#127", PreserveSig = false)]
[DllImport("dwmapi.dll")]
[DllImport("dwmapi.dll")]
Declare Function DwmGetWindowAttribute Lib "dwmapi.dll" (TODO) As TODO
[DllImport("dwmapi.dll")]
<DllImport("dwmapi.dll")> _
[DllImport("dwmapi.dll", PreserveSig = false)]
<DllImport("dwmapi.dll")>
[DllImport("dwmapi.dll", SetLastError=true)]
Declare Function DwmRegisterThumbnail Lib "dwmapi.dll" (ByVal Dest as IntPtr, ByVal Src as IntPtr, ByRef Thumb as IntPtr) As Integer
[DllImport("dwmapi.dll", EntryPoint = "#131", PreserveSig = false)]
[DllImport("dwmapi.dll", EntryPoint = "#131", PreserveSig = false)]
[DllImport("dwmapi.dll")]
Public Declare Function DwmUnregisterThumbnail Lib "dwmapi.dll" (ByVal Thumb as IntPtr) As Integer
[DllImport("dwmapi.dll", PreserveSig = true)]
Public Declare Function DwmUpdateThumbnailProperties Lib "dwmapi.dll" (ByVal hThumbnail as IntPtr, ByRef props as DWM_THUMBNAIL_PROPERTIES) As Integer 51: JOZV4VMBSGCASZ7G0IMQ7KQWWM1KC3JENI2BYESQD26M9ZA1Q63QO52YTR35T4A213H0OZB5IBZP7Z5LE0ZVHQ43B2KA8D4C24SB 52: TaskDialog
[DllImport("dwmapi.dll", SetLastError=true)]
Declare Function TaskDialog Lib "dwmapi.dll" (TODO) As TODO 53: VistaBridge
[DllImport("dwmapi.dll", SetLastError=true)]
Declare Function VistaBridge Lib "dwmapi.dll" (TODO) As TODO gdiplus
Declare Function GdipCreateBitmapFromGdiDib Lib "GdiPlus.dll" (ByRef GdiBitmapInfo As BITMAPINFO, ByVal GdiBitmapData As Long, ByRef bitmap As Long) As Status gdi3256: CreateDIBitmap
static extern IntPtr CreateDIBitmap(IntPtr hdc, [In] ref BITMAPINFOHEADER
lpbmih, uint fdwInit, byte [] lpbInit, [In] ref BITMAPINFO lpbmi,
ByRef lpbmih As BITMAPINFOHEADER, _
ByRef lpbmi As BITMAPINFO, _ 57: CreateDIBSection
static extern IntPtr CreateDIBSection(IntPtr hdc, [In] ref BITMAPINFO pbmi,
ByRef pbmi As BITMAPINFO, ByVal iUsage As System.UInt32, _ The BITMAPINFO structure defines the dimensions and color information for a DIB, it contains the members BITMAPINFOHEADER structure (contains information about the dimensions of color format) and bmiColors which contains one of the following: See MSDN Documentation for BITMAPINFO concerning specific details concerning structure members.58: GetDIBits
/// <param name="lpvBits">A pointer to a buffer to receive the bitmap data. If this parameter is <see cref="IntPtr.Zero"/>, the function passes the dimensions and format of the bitmap to the <see cref="BITMAPINFO"/> structure pointed to by the <paramref name="lpbi"/> parameter.</param>
/// <param name="lpbi">A pointer to a <see cref="BITMAPINFO"/> structure that specifies the desired format for the DIB data.</param>
/// <param name="uUsage">The format of the bmiColors member of the <see cref="BITMAPINFO"/> structure. It must be one of the following values.</param>
/// If the lpvBits parameter is NULL and GetDIBits successfully fills the <see cref="BITMAPINFO"/> structure, the return value is nonzero.
static extern int GetDIBits([In] IntPtr hdc, [In] IntPtr hbmp, uint uStartScan, uint cScanLines, [Out] byte[] lpvBits, ref BITMAPINFO lpbi, DIB_Color_Mode uUsage); 59: SetDIBits
byte [] lpvBits, [In] ref BITMAPINFO lpbmi, uint fuColorUse); 60: StretchDIBits
int nSrcHeight, byte [] lpBits, [In] ref BITMAPINFO lpBitsInfo, uint iUsage, Cut off search results after 60. Please refine your search. |