WlxShutdown function (winwlx.h)

[The WlxShutdown function is no longer available for use as of Windows Server 2008 and Windows Vista.]

The WlxShutdown function must be implemented by a replacement GINA DLL. Winlogon calls this function just before shutting down, allowing the GINA to perform any shutdown tasks, such as ejecting a smart card from a reader.

Note   GINA DLLs are ignored in Windows Vista.
 

Syntax

void WlxShutdown(
  [in] PVOID pWlxContext,
  [in] DWORD ShutdownType
);

Parameters

[in] pWlxContext

A pointer to the GINA context associated with this window station. The GINA returns this context value when Winlogon calls WlxInitialize for this station.

[in] ShutdownType

Specifies the type of shutdown. This parameter can be one of the following values.

Value Meaning
WLX_SAS_ACTION_SHUTDOWN
5 (0x5)
Logs the user off and shuts down the computer.
WLX_SAS_ACTION_SHUTDOWN_REBOOT
11 (0xB)
Shuts down and restarts the computer.
WLX_SAS_ACTION_SHUTDOWN_POWER_OFF
10 (0xA)
Shuts down and turns off the computer, if the hardware allows.

Return value

None

Remarks

Winlogon calls WlxShutdown after the user has logged off and the WlxLogoff function has been called.

Before calling WlxShutdown, 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.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header winwlx.h

See also

WlxInitialize

WlxLogoff