Share via


IMsgrSessionManager::GetLaunchingSession Method

Deprecated. Retrieves the session information that started the application.

Syntax

HRESULT GetLaunchingSession(      
    LONG lProcessID,
    IDispatch **ppSession
);

Parameters

  • lProcessID
    [in] LONG that specifies the process ID of the process.
  • ppSession
    [out, retval] Address of a pointer to an IDispatch World Wide Web link interface that returns the MsgrSession object.

Return Value

Returns one of the following values.

S_OK The session information was retrieved successfully.
E_INVALIDARG One of the parameters passed to the method was not valid.
E_FAIL The session information cannot be retrieved due to a catastrophic error.

Remarks

Process IDs can be viewed from within the Task Manager.

Important  IMsgrSessionManager::GetLaunchingSession is no longer available in Windows Vista. See Windows Messenger for more information.

See Also

MsgrSession, Messenger Session Invite and Messenger Private APIs, Messenger Lock and Key API