PWLX_DIALOG_BOX_PARAM callback function (winwlx.h)
[The WlxDialogBoxParam function is no longer available for use as of Windows Server 2008 and Windows Vista.]
Called by GINA to initialize dialog box controls and then create a modal dialog box from a dialog box template resource.
Syntax
PWLX_DIALOG_BOX_PARAM PwlxDialogBoxParam;
int PwlxDialogBoxParam(
[in] HANDLE hWlx,
[in] HANDLE hInst,
[in] LPWSTR lpszTemplate,
[in] HWND hwndOwner,
[in] DLGPROC dlgprc,
[in] LPARAM dwInitParam
)
{...}
Parameters
[in] hWlx
Specifies the Winlogon handle passed to GINA in the WlxInitialize call.
[in] hInst
Specifies an instance of the module whose executable file contains the dialog box template.
[in] lpszTemplate
Specifies the dialog box template. This parameter is either the address of a null-terminated character string that specifies the name of the dialog box template, or an integer value that specifies the resource identifier of the dialog box template. If the parameter specifies a resource identifier, its high-order word must be zero and its low-order word must contain the identifier. You can use the MAKEINTRESOURCE macro to create this value.
[in] hwndOwner
Specifies the window that owns the dialog box.
[in] dlgprc
Points to the dialog box procedure. For more information about the dialog box procedure, see DialogProc.
[in] dwInitParam
Specifies the value to pass to the dialog box in the lParam parameter of the WM_INITDIALOG message.
Return value
If the WlxDialogBoxParam function succeeds, the return value is the value of the nResult parameter given in the call to the EndDialog function used to terminate the dialog box. The following table lists some possible success return values.
Return code | Description |
---|---|
|
Input timed out. |
|
A secure attention sequence (SAS) event occurred. |
|
The screen saver timed out. |
|
The user logged off. |
If the function fails, the return value is –1.
Remarks
WlxDialogBoxParam duplicates the Windows DialogBoxParam function, and also allows Winlogon to terminate the dialog box. For more information, see DialogBoxParam.
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 |