WlxLoggedOnSAS function (winwlx.h)
[The WlxLoggedOnSAS function is no longer available for use as of Windows Server 2008 and Windows Vista.]
The WlxLoggedOnSAS function must be implemented by a replacement GINA DLL. Winlogon calls this function when it receives a secure attention sequence (SAS) event while the user is logged on and the workstation is not locked.
int WlxLoggedOnSAS( PVOID pWlxContext, DWORD dwSasType, PVOID pReserved );
A pointer to the GINA context associated with this window station. The GINA returns this context value when Winlogon calls WlxInitialize for this station.
Specifies the type of SAS that occurred. Values from zero to WLX_SAS_TYPE_MAX_MSFT_VALUE are reserved to define standard Microsoft SAS types. GINA developers can define additional SAS types by using values greater than WLX_SAS_TYPE_MAX_MSFT_VALUE.
The following SAS types are predefined.
||Indicates that no user input was received within the specified time-out period.|
||Indicates that a user has typed the standard CTRL+ALT+DEL secure attention sequence (SAS).|
||Indicates that a smart card has been inserted into a compatible device.|
||Indicates that a smart card has been removed from a compatible device.|
This parameter is reserved and must be set to NULL.
The WlxLoggedOnSAS function should return one of the following values.
||Returns to the default desktop.|
||Locks the workstation and waits for the next SAS.|
||Logs the user off the workstation.|
||Logs the user off and shuts down the computer.|
||Logs the user off, shuts down the computer, and then restarts the computer.|
||If hardware allows, logs the user off, shuts down the computer, and then turns off the computer.|
||Notifies network providers that the user changed their password. Obsolete GINA DLLs should call WlxChangePasswordNotify whenever a password is changed.|
||Invokes the task list.|
||Forcibly logs off the user.|
||Puts the computer in suspend mode.|
||Shuts down the system into an ACPI power-down state. If the computer is not an ACPI computer, this option will have no effect.|
||Shuts down the system into the hibernate mode. If the system was not configured for hibernation, this option will have no effect.|
Winlogon calls WlxLoggedOnSAS when the logged-on user wants to shut down, log out, or lock the workstation. The GINA DLL can lock the workstation by returning WLX_SAS_ACTION_LOCK_WKSTA. When this value is returned, Winlogon locks the workstation and calls WlxWkstaLockedSAS the next time it receives an SAS.
Before calling WlxLoggedOnSAS, Winlogon sets the desktop state so that the current desktop is the Winlogon desktop and sets the workstation state so that the desktop is locked.
|Minimum supported client||Windows XP [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|