Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/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 LASSReloadConfigor when you reboot your device.

Customizing StartUI to Use LASS

To customize StartUI to use LASS at startup
  1. 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.

  2. Recompile Startui.cpp.

  3. Run the Sysgen tool to make sure that the new settings appear in GWES, which is the Catalog item that contains StartUI.

  4. 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 AEFrequencyValuesetting of FFFFFFFF to 0, so that the user will be authenticated every time. For more information about this registry subkey, see LASS Registry Settingsand Setting an AE Policy.

  5. If you are using the default password LAP, all application calls to VerifyUserwill 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
  1. 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.

  2. Recompile Cplmain.cpp.

See Also

Reference

LASS Registry Settings

Other Resources

Configuring LASS