Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "MAPI" in [All]

dmcl40

.

[DllImport("dmcl40.dll",EntryPoint="dmAPIDeInit", CharSet=CharSet.Ansi, ExactSpelling=true,CallingConvention=CallingConvention.Cdecl )]

.

private static extern int dmAPIDeInit();

.

[DllImport("dmcl40.dll", EntryPoint="dmAPIExec", CharSet=CharSet.Ansi, ExactSpelling=true,CallingConvention=CallingConvention.Cdecl)]

.

private extern static int dmAPIExec(string command);    

.

    int res = dmAPIExec(cmd);

.

[DllImport("dmcl40.dll", EntryPoint="dmAPIGet", CharSet=CharSet.Ansi, ExactSpelling=true,CallingConvention=CallingConvention.Cdecl)]

.

private extern static IntPtr dmAPIGet(string cmd);

.

    IntPtr res = dmAPIGet(cmd);

.

[DllImport("dmcl40.dll",EntryPoint="dmAPIInit", CharSet=CharSet.Ansi,  ExactSpelling=true,CallingConvention=CallingConvention.Cdecl)]

.

private static extern int dmAPIInit();

glu32

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,xolehlp,twain_32,winmm,wininet,comdlg32,imm32,ntdsapi,odbccp32,opengl32,mapi32,Constants,Delegates,Enums,Interfaces,Structures

opengl32

.

    public static extern void glGetMapiv(uint target, uint query, int[] v);

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,xolehlp,twain_32,winmm,wininet,comdlg32,imm32,ntdsapi,odbccp32,glu32,mapi32,Constants,Delegates,Enums,Interfaces,Structures

misc

.

Is someone going to add the module for dwmapi.dll?

.
Import
advapi32,avifil32,cards,comdlg32,credui,crypt32,dmcl40,gdi32,gdiplus,glu32,glut32,gsapi,hhctrl,httpapi,icmp,imm32,iphlpapi,iprop,kernel32,mapi32,mpr,mqrt,mscorsn,msdrm,msi,msvcrt,netapi32,ntdll,ntdsapi,odbc32,odbccp32,ole32,oleacc,oleaut32,opengl32,powrprof,pstorec,query,rasapi32,rpcrt4,secur32,setupapi,shell32,shlwapi,twain_32,unicows,urlmon,user32,uxtheme,winfax,wininet,winmm,winscard,winspool,ws2_32,wtsapi32,xolehlp,aygshell,coredll,rapi,cfgmgr32,comctl32,hlink,Constants,Delegates,Enums,Interfaces,Structures,Glossary

pdh

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,xolehlp,twain_32,winmm,wininet,comdlg32,imm32,ntdsapi,odbccp32,glu32,mapi32,Constants,Delegates,Enums,Interfaces,Structures

dwmapi

.

[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")> _

.

go to http://www.pinvoke.net/default.aspx/dwmapi.DwmSetColorizationParameters

.

[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

.

[DllImport("dwmapi.dll", SetLastError=true)]

.

Declare Function TaskDialog Lib "dwmapi.dll" (TODO) As TODO

.

[DllImport("dwmapi.dll", SetLastError=true)]

.

Declare Function VistaBridge Lib "dwmapi.dll" (TODO) As TODO

.
Namespace
dwmapi
.
Description
dwmapi.dll
.
Title
dwmapi

shell32

.

    public static readonly Guid SEARCH_MAPI = new Guid( "98ec0e18-2098-4d44-8644-66979315a281" );

.

    public static Guid SEARCH_MAPI = new Guid("98ec0e18-2098-4d44-8644-66979315a281");

icmp

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,xolehlp,twain_32,winmm,wininet,comdlg32,imm32,ntdsapi,odbccp32,glu32,mapi32,Constants,Delegates,Enums,Interfaces,Structures

rpcrt4

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,xolehlp,twain_32,winmm,wininet,comdlg32,imm32,ntdsapi,odbccp32,glu32,mapi32,Constants,Delegates,Enums,Interfaces,Structures

ntdll

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,xolehlp,twain_32,winmm,wininet,comdlg32,imm32,ntdsapi,odbccp32,glu32,mapi32,Constants,Delegates,Enums,Interfaces,Structures

Constants

39: MAPI
.
Summary
MAPI - Constants used by the Messaging Application Programming Interface functions.
.

  public const uint MAPI_ORIG = 0;

.

  public const uint MAPI_TO = 1;

.

  public const uint MAPI_CC = 2;

.

  public const uint MAPI_BCC = 3;

.

  public const uint MAPI_UNREAD = 0x00000001;

.

  public const uint MAPI_RECEIPT_REQUESTED = 0x00000002;

.

  public const uint MAPI_SENT = 0x00000004;

.

  /// MAPI_LOGON_UI must be set.

.

  public const uint MAPI_LOGON_UI = 0x00000001;

.

  /// MAPILogon should only prompt for a password and not allow the user to change the profile name.

.

  /// Either MAPI_PASSWORD_UI or MAPI_LOGON_UI should not be set, since the intent is

.

  public const uint MAPI_PASSWORD_UI = 0x00020000;

.

  /// If the MAPI_NEW_SESSION flag is not set, MAPILogon uses an existing shared session.

.

  public const uint MAPI_NEW_SESSION = 0x00000002;

.

  /// If the MAPI_FORCE_DOWNLOAD flag is not set, messages can be downloaded in the background

.

  public const uint MAPI_FORCE_DOWNLOAD = 0x00001000;

.

  /// This flag indicates an Extended MAPI session will be created.

.

  public const uint MAPI_EXTENDED = 0x00000020;

.

  /// MAPI should not inform the MAPI spooler of the session's existence. The result is that no messages can be sent or received within

.

  public const uint MAPI_NO_MAIL = 0x00008000;

.

  /// When MAPI_DIALOG is not set, at least one recipient must be specified.

.

  public const uint MAPI_DIALOG = 0x00000008;

.

  /// If this flag is not set, MAPIFindNext can return any message of the specified type.

.

  public const uint MAPI_UNREAD_ONLY = 0x00000020;

.

  /// If MAPI_OLE_STATIC is also set, the attachment is a static OLE object.

.

  /// If MAPI_OLE_STATIC is not set, the attachment is an embedded OLE object.

.

  public const uint MAPI_OLE = 0x00000001;

.

  public const uint MAPI_OLE_STATIC = 0x00000002;

.

  /// MAPIFindNext calls can take longer if this flag is set.

.

  /// Some implementations cannot honor this request and return the MAPI_E_NOT_SUPPORTED value.

.

  public const uint MAPI_GUARANTEE_FIFO = 0x00000100;

.

  /// Older versions of MAPI supported smaller message identifiers (64 bytes) and did not include this flag.

.

  /// MAPIFindNext will succeed without this flag set as long as lpszMessageID is large enough

.

  /// MAPIFindNext will fail.

.

  public const uint MAPI_LONG_MSGID = 0x00004000;

.

  /// MAPIReadMail does not mark the message as read.

.

  /// If the messaging system does not support this flag, MAPIReadMail always marks the

.

  /// message as read. If MAPIReadMail encounters an error, it leaves the message unread.

.

  public const uint MAPI_PEEK = 0x00000080;

.

  /// MAPIReadMail should not copy file attachments but should write message text into the

.

  /// MapiMessage structure.

.

  /// MAPIReadMail ignores this flag if the calling application has set the

.

  /// MAPI_ENVELOPE_ONLY flag. Setting the MAPI_SUPPRESS_ATTACH flag enhances performance.

.

  public const uint MAPI_SUPPRESS_ATTACH = 0x00000800;

.

  /// MAPIReadMail should read the message header only.

.

  public const uint MAPI_ENVELOPE_ONLY = 0x00000040;

.

  /// MAPIReadMail should write the message text to a temporary file

.

  public const uint MAPI_BODY_AS_FILE = 0x00000200;

.

  /// MAPIDetails might or might not honor the request.

.

  public const uint MAPI_AB_NOMODIFY = 0x00000400;

.

  public const uint MAPI_SUCCESS_SUCCESS = 0;

.

  public const uint MAPI_USER_ABORT = 1;

.

  public const uint MAPI_E_USER_ABORT = MAPI_USER_ABORT;

.

  public const uint MAPI_E_FAILURE = 2;

.

  public const uint MAPI_E_LOGON_FAILURE = 3;

.

  public const uint MAPI_E_LOGIN_FAILURE = MAPI_E_LOGON_FAILURE;

.

  public const uint MAPI_E_DISK_FULL = 4;

.

  public const uint MAPI_E_INSUFFICIENT_MEMORY = 5;

.

  /// Access to the MAPI client was denied.

.

  public const uint MAPI_E_ACCESS_DENIED = 6;

.

  public const uint MAPI_E_TOO_MANY_SESSIONS = 8;

.

  public const uint MAPI_E_TOO_MANY_FILES = 9;

.

  public const uint MAPI_E_TOO_MANY_RECIPIENTS = 10;

.

  public const uint MAPI_E_ATTACHMENT_NOT_FOUND = 11;

.

  public const uint MAPI_E_ATTACHMENT_OPEN_FAILURE = 12;

.

  public const uint MAPI_E_ATTACHMENT_WRITE_FAILURE = 13;

.

  public const uint MAPI_E_UNKNOWN_RECIPIENT = 14;

.

  /// The type of a recipient was not MAPI_TO, MAPI_CC, or MAPI_BCC.

.

  public const uint MAPI_E_BAD_RECIPTYPE = 15;

.

  public const uint MAPI_E_NO_MESSAGES = 16;

.

  public const uint MAPI_E_INVALID_MESSAGE = 17;

.

  public const uint MAPI_E_TEXT_TOO_LARGE = 18;

.

  public const uint MAPI_E_INVALID_SESSION = 19;

.

  public const uint MAPI_E_TYPE_NOT_SUPPORTED = 20;

.

  public const uint MAPI_E_AMBIGUOUS_RECIPIENT = 21;

.

  public const uint MAPI_E_AMBIG_RECIP = MAPI_E_AMBIGUOUS_RECIPIENT;

.

  public const uint MAPI_E_MESSAGE_IN_USE = 22;

.

  public const uint MAPI_E_NETWORK_FAILURE = 23;

.

  public const uint MAPI_E_INVALID_EDITFIELDS = 24;

.

  public const uint MAPI_E_INVALID_RECIPS = 25;

.

  public const uint MAPI_E_NOT_SUPPORTED = 26;

.

    Public Const MAPI_ORIG As UInteger = 0

.

    Public Const MAPI_TO As UInteger = 1

.

    Public Const MAPI_CC As UInteger = 2

.

    Public Const MAPI_BCC As UInteger = 3

.

    Public Const MAPI_UNREAD As UInteger = &H1

.

    Public Const MAPI_RECEIPT_REQUESTED As UInteger = &H2

.

    Public Const MAPI_SENT As UInteger = &H4

.

    Public Const MAPI_LOGON_UUI As UInteger = &H1

.

    Public Const MAPI_PASSWORD_UUI As UInteger = &H20000

.

    Public Const MAPI_NEW_SESSION As UInteger = &H2

.

    Public Const MAPI_FORCE_DOWNLOAD As UInteger = &H1000

.

    Public Const MAPI_EXTENDED As UInteger = &H20

.

    Public Const MAPI_NO_MAIL As UInteger = &H8000

.

    Public Const MAPI_DIALOG As UInteger = &H8

.

    Public Const MAPI_UNREAD_ONLY As UInteger = &H20

.

    Public Const MAPI_OLE As UInteger = &H1

.

    Public Const MAPI_OLE_STATIC As UInteger = &H2

.

    Public Const MAPI_GUARANTEE_FIFO As UInteger = &H100

.

    Public Const MAPI_LONG_MSGID As UInteger = &H4000

.

    Public Const MAPI_PEEK As UInteger = &H80

.

    Public Const MAPI_SUPPRESS_ATTACH As UInteger = &H800

.

    Public Const MAPI_ENVELOPE_ONLY As UInteger = &H40

.

    Public Const MAPI_BODY_AS_FILE As UInteger = &H200

.

    Public Const MAPI_AB_NOMODIFY As UInteger = &H400

.

    Public Const MAPI_SUCCESS_SUCCESS As UInteger = 0

.

    Public Const MAPI_USER_ABORT As UInteger = 1

.

    Public Const MAPI_E_USER_ABORT As UInteger = MAPI_USER_ABORT

.

    Public Const MAPI_E_FAILURE As UInteger = 2

.

    Public Const MAPI_E_LOGON_FAILURE As UInteger = 3

.

    Public Const MAPI_E_LOGIN_FAILURE As UInteger = MAPI_E_LOGON_FAILURE

.

    Public Const MAPI_E_DISK_FULL As UInteger = 4

.

    Public Const MAPI_E_INSUFFICIENT_MEMORY As UInteger = 5

.

    Public Const MAPI_E_ACCESS_DENIED As UInteger = 6

.

    Public Const MAPI_E_TOO_MANY_SESSIONS As UInteger = 8

.

    Public Const MAPI_E_TOO_MANY_FILES As UInteger = 9

.

    Public Const MAPI_E_TOO_MANY_RECIPIENTS As UInteger = 10

.

    Public Const MAPI_E_ATTACHMENT_NOT_FOUND As UInteger = 11

.

    Public Const MAPI_E_ATTACHMENT_OPEN_FAILURE As UInteger = 12

.

    Public Const MAPI_E_ATTACHMENT_WRITE_FAILURE As UInteger = 13

.

    Public Const MAPI_E_UNKNOWN_RECIPIENT As UInteger = 14

.

    Public Const MAPI_E_BAD_RECIPTYPE As UInteger = 15

.

    Public Const MAPI_E_NO_MESSAGES As UInteger = 16

.

    Public Const MAPI_E_INVALID_MESSAGE As UInteger = 17

.

    Public Const MAPI_E_TEXT_TOO_LARGE As UInteger = 18

.

    Public Const MAPI_E_INVALID_SESSION As UInteger = 19

.

    Public Const MAPI_E_TYPE_NOT_SUPPORTED As UInteger = 20

.

    Public Const MAPI_E_AMBIGUOS_RECIPIENT As UInteger = 21

.

    Public Const MAPI_E_AMBIG_RECIP As UInteger = MAPI_E_AMBIGUOS_RECIPIENT

.

    Public Const MAPI_E_MESSAGE_IN_USE As UInteger = 22

.

    Public Const MAPI_E_NETWORK_FAILURE As UInteger = 23

.

    Public Const MAPI_E_INVALID_EDITFIELDS As UInteger = 24

.

    Public Const MAPI_E_INVALID_RECIPS As UInteger = 25

.

    Public Const MAPI_E_NOT_SUPPORTED As UInteger = 26

.

        /// Schema update failed: duplicate MAPI identifier.

.

        public const int ERROR_DS_DUP_MAPI_ID = 8380;

avifil32

.

   ByRef bih As BITMAPINFOHEADER) As Integer

.

                         ByRef lpFormat As BITMAPINFOHEADER,

.

    Public Structure BITMAPINFOHEADER

.

VB BITMAPINFOHEADER Warning

.

    Public Shared Function AVIStreamReadFormat2(ByVal aviStream As IntPtr, ByVal lPos As Int32, ByRef lpFormat As BITMAPINFOHEADER, ByRef cbFormat As Int32) As Integer

.

                         ByRef lpFormat As BITMAPINFOHEADER,

.

    Public Structure BITMAPINFOHEADER

.

VB BITMAPINFOHEADER Warning

.

    Public Shared Function AVIStreamReadFormat2(ByVal aviStream As IntPtr, ByVal lPos As Int32, ByRef lpFormat As BITMAPINFOHEADER, ByRef cbFormat As Int32) As Integer

mapi32

.

[DllImport(@"C:\Program Files\Microsoft Office\Office15\OLMAPI32.dll", EntryPoint = "HrGetAutoDiscoverXML", CharSet = CharSet.Unicode)]

.

Call MAPIInitialize before this function.

.
Summary
MAPIAddress - Creates or modifies a set of address list entries.
.

  /// 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,

.

MAPI

.

MAPI

.

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.

.
Documentation
[MAPIAddress] on MSDN
.
Summary
MAPIDeleteMail - Deletes a message.
.

  /// The MAPIDeleteMail function deletes a message.

.

  [DllImport("MAPI32.DLL", CharSet=CharSet.Ansi)]

.

  public static extern uint MAPIDeleteMail(IntPtr lhSession, IntPtr ulUIParam, string lpszMessageID,

.

MAPI

.
Documentation
[MAPIDeleteMail] on MSDN
.
Summary
MAPIDetails - Displays a dialog box containing the details of a selected address list entry.
.

  /// 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);

.

MAPI

.

MAPI

.
Documentation
[MAPIDetails] on MSDN
.
Summary
MAPIFindNext - Retrieves the next (or first) message identifier of a specified type of incoming message.
.

  /// 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,

.

MAPI

.
Documentation
[MAPIFindNext] on MSDN
.
Summary
MAPIFreeBuffer - Frees a MAPI-allocated memory buffer.
.

  /// 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.

.
Documentation
[MAPIFreeBuffer] on MSDN
.

[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

.
Documentation
[MAPIInitialize] on MSDN
.
Summary
MAPILogoff - The MAPILogoff function ends a session with the messaging system.
.

/// 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

.

MAPI

.

        errorCode = MAPILogoff( session, parentWindowPtr , 0, 0 );

.

        errorCode = MAPILogoff(session, parentWindowPtr, 0, 0)

.
Documentation
[MAPILogoff] on MSDN

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: