[Accept is no longer available for use as of Windows Vista. See Windows Messenger for more information.]
Recipient accepts the invitation.
HRESULT Accept( [in] BSTR bstrAppData );
BSTR that specifies the application-specific data. bstrAppData has a limit of 512 bytes.
Returns one of the following values.
||The invitation was accepted successfully.
||The parameter passed to the method was not valid.
||The SESSION_STATE of the accepting user is not valid.
Use this method to programmatically accept an invitation within an application.
The recipient may accept the invitation by setting bstrAppData to NULL within the application.
The parameter defined in this method is passed to the recipient's session in the form of a notification from the OnAccepted event.
The following table lists the error codes returned by this method.
|0x80070057||The parameter passed to the method was not valid.|
|SR_SESSION_STATE_INVALID (0x81000614)||The SESSION_STATE of the accepting user is not valid.|
|Minimum supported client
||Windows XP [desktop apps only]
|Minimum supported server
||Windows Server 2003 [desktop apps only]
|End of client support
|End of server support
||Windows Server 2003