Platform SDK: Exchange Server |
Returns the entry identifier and other information of the currently selected item in a Microsoft Exchange window.
See IExchExtCallback : IUnknown.
HRESULT GetSelectionItem( ULONG ieid, ULONG FAR * lpcbeid, LPENTRYID FAR * lppeid, ULONG FAR * lpulType, LPTSTR lpszMsgClass, ULONG cbMsgClass, ULONG FAR * lpulMsgFlags, ULONG ulFlags );
MAPI_STORE = 1, if lppeid refers to a message store.
MAPI_ADDRBOOK = 2, if lppeid refers to an address book.
MAPI_FOLDER = 3, if lppeid refers to a folder.
MAPI_MESSAGE = 5, if lppeid refers to a message.
The IExchExtCallback::GetSelectionItem method is used to return the entry identifier of the currently selected item in a Microsoft Exchange Window. For example, if a custom form is installed and the user selects this form, extension objects that implement the IExchExtUserEvents::OnSelectionChange method can use GetSelectionItem to determine the message class of the selected message. If the extension object is programmed to handle messages of this class, it might display or enable menu items specific to the message class.
If a parameter is not used in this method, pass NULL for that parameter.