IWRdsProtocolConnection::NotifySessionId method

Sends the identifier of the new session to the protocol.

Syntax


HRESULT NotifySessionId(
  [in] WRDS_SESSION_ID *SessionId,
  [in] HANDLE_PTR      SessionHandle
);

Parameters

SessionId [in]

A pointer to a WRDS_SESSION_ID structure that uniquely identifies the session.

SessionHandle [in]

The session handle.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This is an event notification and you should return immediately from this method. To avoid a possible deadlock, you should not make any function or method calls that will directly or indirectly result in a Remote Desktop Services API being called. If you need to make any outbound call, you should start a new thread and make the outbound call from the new thread.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2012

IDL

Wtsprotocol.idl

See also

IWRdsProtocolConnection

 

 

Show: