Compartilhar via


CheckPassword (Windows CE 5.0)

Send Feedback

This function validates a password by checking a string to determine if it matches the current password. A remote application interface (RAPI) version of this function exists, named CeCheckPassword (RAPI).

BOOL CheckPassword(LPWSTRlpszPassword );

Parameters

  • lpszPassword
    Pointer to a null-terminated string containing the password to verify.

Return Values

TRUE indicates a valid password; otherwise, the password is invalid.

Remarks

To use this function, you must include the Password component, Fspass, in your Cesysgen.bat file.

For a sample usage of this function, see the files in %_WINCEROOT%\Public\Common\Oak\Drivers\Startui.

CheckPassword may only be called by trusted applications. For untrusted applications, the call will fail with GetLastError returning ERROR_ACCESS_DENIED.

Requirements

OS Versions: Windows CE 2.10 and later.
Header: Windbase.h.

See Also

GetPasswordActive | SetPassword | SetPasswordActive | CeCheckPassword (RAPI)

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.