IWTSProtocolConnection::LogonNotify method (wtsprotocol.h)
[IWTSProtocolConnection::LogonNotify is no longer available for use as of Windows Server 2012. Instead, use IWRdsProtocolConnection::LogonNotify.]
Specifies that the user has logged on to the session.
Syntax
HRESULT LogonNotify(
[in] HANDLE_PTR hClientToken,
[in] WCHAR *wszUserName,
[in] WCHAR *wszDomainName,
[in] WTS_SESSION_ID *SessionId
);
Parameters
[in] hClientToken
A pointer to a user token handle.
[in] wszUserName
A pointer to a string that contains the user name.
[in] wszDomainName
A pointer to a string that contains the domain name for the user.
[in] SessionId
A pointer to a WTS_SESSION_ID structure that contains the session ID associated with the user.
Return value
None
Remarks
The Remote Desktop Services service also calls this method when the state of the session has changed.
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
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2008 R2 |
Target Platform | Windows |
Header | wtsprotocol.h |