WlxIsLogoffOk function (winwlx.h)

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

The WlxIsLogoffOk function must be implemented by a replacement GINA DLL. Winlogon calls this function when the user initiates a logoff operation.

Note   GINA DLLs are ignored in Windows Vista.
 

Syntax

BOOL WlxIsLogoffOk(
  [in] PVOID pWlxContext
);

Parameters

[in] pWlxContext

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

Return value

Return code Description
TRUE
Returns TRUE if it is acceptable to perform the logoff operation.
FALSE
Returns FALSE if it is not acceptable to perform the logoff operation.

Remarks

WlxIsLogoffOk can return FALSE to prevent the user from logging off the workstation.

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