LinkMessageToMessage

The LinkMessageToMessage function extracts the necessary properties (PR_ENTRYID, PR_PARENT_ENTRYID, PR_STORE_ENTRYID, PR_SUBJECT) from one message and uses them to create a link to that message in a second message.

STDAPI LinkMessageToMessage(
  LPMESSAGE pmsgLink,  
  LPMESSAGE pmsgOuter, 
  HANDLE hicon,        
  ULNOG ulPos          
);
 

Parameters

pmsgLink
[in] The message the link should point to.
pmsgOuter
[in] The message the link should be placed into.
hicon
[in] Icon for rendering the link.
ulPos
[in] Position of the link in pmsgOuter's text.