Platform SDK: Exchange Server

LinkFolderToNewMessage

The LinkFolderToNewMessage function takes a list of entry identifiers leading to the linked folder, formats the folder link, and places it in an attachment to pmsg, along with rendering and positioning information.

STDAPI LinkFolderToNewMessage(
  LPMESSAGE pmsg,   
  LPENTRYLIST pel,  
  LPSTR szFileName, 
  LPSTR szFolder,   
  HICON hicon,      
  ULONG ulPos       
);
 

Parameters

pmsg
[in] Outer message to place the link into.
pel
[in] List of entry identifiers leading to the linked folder: message store, IPM root, . . ., parent folder, then the linked folder.
szFileName
[in] Attached filename, must end in .XNK.
szFolder
[in] Folder name, for display purposes.
hicon
[in] If nonzero, an icon for display purposes.
ulPos
[in] Position of the link in the outer message’s text; pass 0xffffffff if not to be displayed.