IWRdsProtocolManager::NotifySessionStateChange method (wtsprotocol.h)
Notifies the protocol provider of changes in the state of a session.
Syntax
HRESULT NotifySessionStateChange(
[in] WRDS_SESSION_ID *SessionId,
[in] ULONG EventId
);
Parameters
[in] SessionId
A pointer to a WRDS_SESSION_ID structure that uniquely identifies the session.
[in] EventId
An integer that contains the event ID. The following IDs can be found in Winuser.h.
WTS_CONSOLE_CONNECT (0x1)
WTS_CONSOLE_DISCONNECT (0x2)
WTS_REMOTE_CONNECT (0x3)
WTS_SESSION_LOGOFF (0x6)
WTS_SESSION_LOCK (0x7)
WTS_SESSION_UNLOCK (0x8)
WTS_SESSION_REMOTE_CONTROL (0x9)
Return value
When you are implementing this method, return S_OK if the function succeeds. If it fails, return an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2012 |
Target Platform | Windows |
Header | wtsprotocol.h |