A version of this page is also available for
This optional function is called when the device needs to block an user from continuing for a set period of time. This is a LAP-exported function.
BOOL LAPLockoutUser( HWND hwnd, LPCWSTR pwszAEDisplayText, DWORD cSecondsToLockout );
[in] Handle to the parent window. This value may be NULL.
[in] Pointer to the text for the LAP to display. The value will be the same pwszAEDisplayText as passed to VerifyUser (LAP).
[in] Amount of time, in seconds, to block the user from continuing.
Returns TRUE if the user was successfully locked out for the duration specified in cSecondsToLockout.
Returns FALSE if the user cancels during the lockout period. If the return value is FALSE, the LASS knows that lockout was not completed successfully and the lockout will be run again the next time the user tries authenticate. To provide more details about why the function failed, use SetLastError.
This function is used with exponential backoff. The simplest implementation of this API is to disable use of device features (except for emergency calling) for cSecondsToLockout seconds. For a more robust implementation, the UI could display a dialog informing the user they have cSecondsToLockout seconds before they can continue.
It is very important for users to be able to dial emergency numbers while locked out of the device. Any implementation of this function needs to provision for such a scenario.
This function is called by the LASS, not the application. Therefore, no link library is exposed. .
|Windows Mobile||Windows Mobile 6 Classic and later, Windows Mobile 6 Professional and later, Windows Mobile 6 Standard 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.|