mapi.MAPILogonEx

PyIMAPISession = MAPILogonEx(hWnd, profileName , password , uiFlags )

Parameters

hWnd : int

Handle to the window to which the logon dialog box is modal. If no dialog box is displayed during the call, the hWnd parameter is ignored. This parameter can be zero.

profileName : PyUnicode

A string containing the name of the profile to use when logging on. This string is limited to 64 characters.

password : PyUnicode

A string containing the password of the profile. This parameter can be None whether or not the profileName parameter is None. This string is limited to 64 characters.

uiFlags : int

Bitmask of flags used to control how logon is performed. See the MAPI documentation for details.