A version of this page is also available for
This function performs the user verification. It has basically the same parameters as the application-called VerifyUser function. This is a LAP-exported function.
BOOL VerifyUser( const GUID* AEKey, LPCWSTR pwszAEDisplayText, HWND hWndParent, DWORD dwOptions, PVOID pExtended );
[in] Pointer to the authentication event identifier. The identifier corresponds to the type of authentication required.
[in] Pointer to the text for the LAP to display. This will be the same psszAEDisplayText as passed to LAPLockoutUser.
[in] Handle to the parent window.
[in] A bitmask of options. The following table shows the possible values.
When this flag is set, LAP cannot display UI or block on calls to VerifyUser. When using this value, the function will return TRUE only if the user can be verified without displaying the UI. Otherwise, it will return FALSE.
When this flag is set, it indicates to handle master key encryption and decryption if master key encryption and decryption are supported.
When this flag is set, the LAP VerifyUser entry-point function will be called until the user cancels or until the call succeeds.
Notice that there may be multiple calls to VerifyUser during the time between the call to VerifyUserStart and the call to VerifyUserStop. This enables you to cache state during the time between the call to VerifyUserStart and the call to VerifyUserStop.
Reserved. Must be set to NULL.
Returns TRUE if the user is verified, and FALSE otherwise. To provide more details about why the function failed, use SetLastError.
When an application calls VerifyUser with the VU_UNTIL_SUCCESS flag set, the call can result in several calls into the LAP. To prevent UI flash, the LASS will call VerifyUserStart before any VerifyUser (LAP) calls are made. After all VerifyUser calls have been made, the LASS will call VerifyUserStop.
When the application calls VerifyUser, the LAP displays its verification dialog. It is possible for a second application to run and display its UI on top of the LAP verification UI in the z order. If the second application then calls VerifyUser, it will block. To prevent this UI blockage, the LASS will call VerifyUserToTop to request the LAP to bring its UI to the top of the z order.
This function is called by the LASS, not the application. Therefore, no link library is exposed.
The PromptForPasswd function is deprecated. Use the VerifyUser function instead.
|Windows Embedded CE||Windows CE 5.0 and later|
|Windows Mobile||Pocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later|
|Note||This function is called by the LASS, not the application. Therefore, no link library is exposed. For more information see Creating a LAP.|