Export (0) Print
Expand All

VerifyUser (LAP)

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

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
);

AEKey

[in] Pointer to the authentication event identifier. The identifier corresponds to the type of authentication required.

pwszAEDisplayText

[in] Pointer to the text for the LAP to display. This will be the same psszAEDisplayText as passed to LAPLockoutUser.

hWndParent

[in] Handle to the parent window.

dwOptions

[in] A bitmask of options. The following table shows the possible values.

Value Description

VU_NO_UI

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.

VU_HANDLE_MASTER_KEY

When this flag is set, it indicates to handle master key encryption and decryption if master key encryption and decryption are supported.

VU_UNTIL_SUCCESS

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.

pExtended

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.

Aa918210.note(en-us,MSDN.10).gifNote:
This function is called by the LASS, not the application. Therefore, no link library is exposed.
Aa918210.note(en-us,MSDN.10).gifNote:
The PromptForPasswd function is deprecated. Use the VerifyUser function instead.

Headerlap.h
Windows Embedded CEWindows CE 5.0 and later
Windows MobilePocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later
NoteThis function is called by the LASS, not the application. Therefore, no link library is exposed. For more information see Creating a LAP.

Community Additions

ADD
Show:
© 2014 Microsoft