This function is called in response to a session state change.
Arguments:
aul_reason - Session change reason
Values:
|
WTS_CONSOLE_CONNECT |
A session was connected to the console session. |
|
WTS_CONSOLE_DISCONNECT |
A session was disconnected from the console session. |
|
WTS_REMOTE_CONNECT |
A session was connected to the remote session. |
|
WTS_REMOTE_DISCONNECT |
A session was disconnected from the remote session. |
|
WTS_SESSION_LOGIN |
A user has logged on to the session. |
|
WTS_SESSION_LOGOFF |
A user has logged off the session. |
|
WTS_SESSION_LOCK |
A session has been locked. |
|
WTS_SESSION_UNLOCK |
A session has been unlocked. |
|
WTS_SESSION_REMOTE_CONTROL |
A session has changed it's remote controlled status. |
Return:
None
Usage:
You would put code in this function if the service were to do something different when someone was logged on or not logged on. Please note that Windows 2000 does not support this function.