Customizing StartUI or Control Panel to Use LASS (Windows Embedded CE 6.0)
1/6/2010
You can customize StartUI or Control Panel to use LASS to prompt the user for a password.
Note
Remember that registry settings can only take effect when your application calls LASSReloadConfig or when you reboot your device.
Customizing StartUI to Use LASS
To customize StartUI to use LASS at startup
Modify the code located at %_WINCEROOT%\Public\Common\Oak\Drivers\Startui\Startui.cpp by setting USE_LASS_AUTH=1. This causes LASS-specific code to be included in Startui.cpp.
Recompile Startui.cpp.
Run the Sysgen tool to make sure that the new settings appear in GWES, which is the Catalog item that contains StartUI.
Modify the registry file located at %_WINCEROOT%\Public\Common\Oak\Files\Common.reg to change the StartUI AE_STARTUI event. By default, this event is defined so that it will never authenticate.
To change the StartUI AE, search for its defining GUID, which is {1B38A686-7CDC-4017-A5E9-4C6A9DD7E5BA}. Change the default AEFrequencyValue setting of FFFFFFFF to 0, so that the user will be authenticated every time. For more information about this registry subkey, see LASS Registry Settings and Setting an AE Policy.
If you are using the default password LAP, all application calls to VerifyUser will return TRUE until the user enrolls. To enable enrollment with the LAP, you should use the LASSCTL utility located at %_WINCEROOT%\Public\Common\Sdk\Samples\Lassctl, and run
Lassctl enroll
. The next time you reset the device, StartUI will call VerifyUser.
Customizing Control Panel to Use LASS
To customize the Control Panel to use LASS at startup
Modify the code located at %_WINCEROOT%\Public\Wceshellfe\Oak\Ctlpnl\Cplmain\Cplmain.cpp by setting USE_LASS_AUTH=1. This causes LASS-specific code to be included in Cplmain.cpp.
Recompile Cplmain.cpp. The next time you reset the device, StartUI will call VerifyUser.