The HrCreateMailboxAgentProfile function creates a MAPI profile for a mailbox agent.
Header file: | EXCHINST.H |
Library: | EXCHINST.LIB |
HRESULT HrCreateMailboxAgentProfile(
LPSTR lpszServiceName,
LPSTR lpszProfileName
);
See Return Values.
You can determine whether a mailbox agent exists with a call to the HrMailboxAgentExists function. In addition, you can remove an existing mailbox agent with a call to HrRemoveMailboxAgent.
HrMailboxAgentExists, HrRemoveMailboxAgent