IMAPISession::PrepareForm
Office 2013 and later
Last modified: July 23, 2011
Applies to: Outlook
Creates a numeric token that the IMAPISession::ShowForm method uses to access a message.
HRESULT PrepareForm( LPCIID lpInterface, LPMESSAGE lpMessage, ULONG FAR * lpulMessageToken );
The IMAPISession::PrepareForm method creates a message token for the message pointed to by the lpMessage parameter and calls the message's IUnknown::AddRef method. This token is passed in the ulMessageToken parameter to IMAPISession::ShowForm.
If the call to PrepareForm succeeds, release the message pointed to by lpMessage by calling its IUnknown::Release method before you call ShowForm. Failure to release the message before you call ShowForm can cause memory leaks.
Show: