Getting the ContactURL from the Contact
The methods that send Groove messages, such as the IGrooveFormsToolUIDelegateSendInstantMessage and the IGrooveFormsToolMessagingServicesSendInvitation methods, send the messages to the contacts specified by an enumerator containing ContactURLs. The IGrooveFormsToolContactContactURL property provides this information.
The CreateBSTREnumFromArray function creates a BSTR enumerator from a string array. The OnAfterSubmitData sample uses the following construct to create a string array with a single element.
CreateBSTREnumFromArray([PMContact.ContactURL])