Constants (Account management API)

This topic contains constant definitions, class identifiers, and interface identifiers for the Account Management API.

Constants

Constant Definition
ACCT_INIT_NOSYNCH_MAPI_ACCTS
0x00000001
ACCT_INIT_NO_STORES_CHECK
0x00000002
ACCT_INIT_NO_NOTIFICATIONS
0x00000004
ACCTUI_NO_WARNING
0x0100
ACCTUI_SHOW_ACCTWIZARD
0x0400
ACCTUI_SHOW_DATA_TAB
0x0200
E_ACCT_NOT_FOUND
0x800C8101
E_ACCT_UI_BUSY
0x800C8102
E_ACCT_WRONG_SORT_ORDER
0x800C8105
E_INVALIDARG
As defined in the Windows Software Development Kit (SDK) header file winerror.h.
E_NOTIMPL
As defined in the Windows SDK header file winerror.h.
E_OLK_ALREADY_INITIALIZED
0x800C8002
E_OLK_NOT_INITIALIZED
0x800C8005
E_OLK_PARAM_NOT_SUPPORTED
0x800C8003
E_OLK_PROP_READ_ONLY
0x800C800D
E_OLK_REGISTRY
0x800C8001
The following constants beginning with ENCRYPT_ are used by the PROP_SMTP_SECURE_CONNECTION property to specify the type of encrypted connection.
ENCRYPT_CONN_AUTO
3
ENCRYPT_CONN_NO_SECURITY
0
ENCRYPT_CONN_SSL
1
ENCRYPT_CONN_TLS
2
MAPIACCT_SEND_ONLY
0x00000001
NOTIFY_ACCT_CHANGED
1
NOTIFY_ACCT_CREATED
2
NOTIFY_ACCT_DELETED
3
NOTIFY_ACCT_ORDER_CHANGED
4
NOTIFY_ACCT_PREDELETED
5
OLK_ACCOUNT_NO_FLAGS
0
S_OK
As defined in the Windows SDK header file winerror.h.
S_FALSE
As defined in the Windows SDK header file winerror.h.
SECURE_FLAG
0x8000
The following constants beginning with SMTP_ are used by the PROP_SMTP_AUTH_METHOD property and specify the authentication method.
SMTP_AUTH_SAME_AS_POP
0
SMTP_AUTH_RECEIVE_BEFORE_SEND
2
SMTP_AUTH_USER_PASS
1
The following 5 constants and macros are used by the PROP_POP_LEAVE_ON_SERVER property and specify options for POP accounts to leave a copy of a message on the server.
LEAVE_ON_SERVER
0x1
REMOVE_AFTER
0x2
REMOVE_ON_NUKE
0x4
GET_REMOVE_AFTER_DAYS(ul)
((ul)>>16)
SET_REMOVE_AFTER_DAYS(days)
((days)<<16)

Class identifiers

Use the DEFINE_GUID macro defined in the Windows SDK header file guiddef.h to associate the GUID symbolic name with its value.

//{ed475410-b0d6-11d2-8c3b-00104b2a6676}

DEFINE_GUID(CLSID_OlkAccountManager, 0xed475410, 0xb0d6, 0x11d2, 0x8c, 0x3b, 0x0, 0x10, 0x4b, 0x2a, 0x66, 0x76);

//{ed475411-b0d6-11d2-8c3b-00104b2a6676}

DEFINE_GUID(CLSID_OlkPOP3Account, 0xed475411, 0xb0d6, 0x11d2, 0x8c, 0x3b, 0x0, 0x10, 0x4b, 0x2a, 0x66, 0x76);

//{ed475412-b0d6-11d2-8c3b-00104b2a6676}

DEFINE_GUID(CLSID_OlkIMAP4Account, 0xed475412, 0xb0d6, 0x11d2, 0x8c, 0x3b, 0x0, 0x10, 0x4b, 0x2a, 0x66, 0x76);

//{ed475414-b0d6-11d2-8c3b-00104b2a6676}

DEFINE_GUID(CLSID_OlkMAPIAccount, 0xed475414, 0xb0d6, 0x11d2, 0x8c, 0x3b, 0x0, 0x10, 0x4b, 0x2a, 0x66, 0x76);

//{ed475418-b0d6-11d2-8c3b-00104b2a6676}

DEFINE_GUID(CLSID_OlkMail, 0xed475418, 0xb0d6, 0x11d2, 0x8c, 0x3b, 0x0, 0x10, 0x4b, 0x2a, 0x66, 0x76);

//{ed475419-b0d6-11d2-8c3b-00104b2a6676}

DEFINE_GUID(CLSID_OlkAddressBook, 0xed475419, 0xb0d6, 0x11d2, 0x8c, 0x3b, 0x0, 0x10, 0x4b, 0x2a, 0x66, 0x76);

//{ed475420-b0d6-11d2-8c3b-00104b2a6676}

DEFINE_GUID(CLSID_OlkStore, 0xed475420, 0xb0d6, 0x11d2, 0x8c, 0x3b, 0x0, 0x10, 0x4b, 0x2a, 0x66, 0x76);

//{4db5cbf0-3b77-4852-bc8e-bb81908861f3}

DEFINE_GUID(CLSID_OlkHotmailAccount, 0x4db5cbf0, 0x3b77, 0x4852, 0xbc, 0x8e, 0xbb, 0x81, 0x90, 0x88, 0x61, 0xf3);

//{4db5cbf2-3b77-4852-bc8e-bb81908861f3}

DEFINE_GUID(CLSID_OlkLDAPAccount, 0x4db5cbf2, 0x3b77, 0x4852, 0xbc, 0x8e, 0xbb, 0x81, 0x90, 0x88, 0x61, 0xf3);

Interface identifiers

Use the DEFINE_GUID macro defined in the Windows SDK header file guiddef.h to associate the GUID symbolic name with its value.

//{9240A6C0-AF41-11d2-8C3B-00104B2A6676}

DEFINE_GUID(IID_IOlkErrorUnknown, 0x9240a6c0, 0xaf41, 0x11d2, 0x8c, 0x3b, 0x0, 0x10, 0x4b, 0x2a, 0x66, 0x76);

//{9240A6C1-AF41-11d2-8C3B-00104B2A6676}

DEFINE_GUID(IID_IOlkEnum, 0x9240a6c1, 0xaf41, 0x11d2, 0x8c, 0x3b, 0x0, 0x10, 0x4b, 0x2a, 0x66, 0x76);

//{9240a6c3-af41-11d2-8c3b-00104b2a6676}

DEFINE_GUID(IID_IOlkAccountNotify, 0x9240a6c3, 0xaf41, 0x11d2, 0x8c, 0x3b, 0x0, 0x10, 0x4b, 0x2a, 0x66, 0x76);

//{9240a6cb-af41-11d2-8c3b-00104b2a6676}

DEFINE_GUID(IID_IOlkAccountHelper, 0x9240a6cb, 0xaf41, 0x11d2, 0x8c, 0x3b, 0x0, 0x10, 0x4b, 0x2a, 0x66, 0x76);

//{9240a6cd-af41-11d2-8c3b-00104b2a6676}

DEFINE_GUID(IID_IOlkAccountManager, 0x9240a6cd, 0xaf41, 0x11d2, 0x8c, 0x3b, 0x0, 0x10, 0x4b, 0x2a, 0x66, 0x76);

//{9240a6d2-af41-11d2-8c3b-00104b2a6676}

DEFINE_GUID(IID_IOlkAccount, 0x9240a6d2, 0xaf41, 0x11d2, 0x8c, 0x3b, 0x0, 0x10, 0x4b, 0x2a, 0x66, 0x76);