PWLX_CLOSE_USER_DESKTOP callback function (winwlx.h)

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

Called by GINA to close an alternate user desktop and clean up after the desktop is closed.

Note   GINA DLLs are ignored in Windows Vista.
 

Syntax

PWLX_CLOSE_USER_DESKTOP PwlxCloseUserDesktop;

BOOL PwlxCloseUserDesktop(
  HANDLE hWlx,
  PWLX_DESKTOP pDesktop,
  HANDLE hToken
)
{...}

Parameters

hWlx

Specifies the Winlogon handle passed to GINA in the WlxInitialize call.

pDesktop

Specifies a pointer to a WLX_DESKTOP structure, obtained by calling the WlxCreateUserDesktop function.

hToken

Specifies the handle to the token of the user whose desktop is to be closed.

Return value

If the function successfully closes the desktop, the return value is TRUE.

If the function fails, it returns FALSE.

Remarks

In addition to closing the desktop, this function will modify access to the parent window station to remove ACEs added during the creation of the user desktop.

Requirements

   
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

WLX_DESKTOP

WlxCreateUserDesktop

WlxInitialize