The HrStringToAction function produces an ACTION structure from a string.
Header file: | RULECLS.H |
Library: | RULECLS.LIB |
HRESULT HrStringToAction(
LPMAPISESSION lpSession,
LPMAPIFOLDER lpFolder,
LPSTR lpszString,
LPVOID lpObject,
LPACTION lpAction
);
See Return Values.
You must allocate the space for the lpAction parameter. The best method of allocating this space is to call the MAPI MAPIAllocateMore function with a reference to the parent object's ACTION structure.
For information about the IMAPIFolder and IMAPISession interfaces, and the MAPIAllocateBuffer, MAPIAllocateMore, and MAPIFreeBuffer functions, see the MAPI Programmer's Reference.
For more information on this function, see Creating a Rule.