Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This function activates or deactivates the current password.
BOOL SetPasswordActive(BOOLbActive,LPWSTRlpszPassword );
Parameters
- bActive
Specifies the state of the password. If bActive is TRUE, the current password is activated. If bActive is FALSE, the current password is deactivated. - lpszPassword
Pointer to a null-terminated string containing the password.
Return Values
TRUE indicates that the password has been successfully activated or deactivated; otherwise, FALSE is returned.
Remarks
This function can activate or deactivate the password without requiring the password to be stored each time, thereby allowing the device to remember the password unless a cold-boot occurs. To activate or deactivate the password, lpszPassword must match the current password.
To use this function, you must include the Password component, Fspass, in your Cesysgen.bat file.
For a sample implementation of this function, see %_WINCEROOT%\Public\Wceshellfe\Oak\Ctlpnl\Cplmain\Passwd.cpp.
Requirements
OS Versions: Windows CE 2.10 and later.
Header: Windbase.h.
See Also
CheckPassword | GetPasswordActive | SetPassword
Send Feedback on this topic to the authors