Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Windows Mobile: Kiosk Mode – Clear Today and Programs

0.00/5 (No votes)
22 Oct 2012 1  
Windows Mobile: Kiosk Mode – Clear Today and Programs

This time, I combined a set of functions to clear the Start Menu and the Today/Home Screen.

Before

After

Empty the Start Menu

The Start Menu is cleared by removing all files below “\Windows\Start Menu” (using SHGetSpecialFolderPath) after the whole bunch has been backed up into a zip file (using Ionic compact framework library: http://dotnetzip.codeplex.com/). Additionally, one registry key has to be changed to remove the Setting icon (HKLM\Security\Shell\StartInfo:HideSettings).

If the Settings icon has been changed, you need to reboot the device to make it visible or not.

Empty the Home Screen

All items in the home screen are enabled via the registry. The tool simply iterates through all subkeys of HKLM\Software\Microsoft\Today\Items and sets Enabled=0. Before doing so, another Backup is created with the current settings (using XML and serialization). Additionally, some other reg keys have to be changed: One is HKLM\Software\Microsoft\Today:Date to hide the Date item. Another is
HKLM\Software\Microsoft\Today:Enabled and, to disable the Home screen will popup periodically, HKLM\Software\Microsoft\Shell\Rai:SessionTimeout.

After changing the Home screen items via an app, the device has to be rebooted.

ClearDevice

The tool enables you to play with the above settings. It does backups before removing all the default stuff, so you can restore the settings later on.

Source Code and Binary

The source code (VS2008, WM 6.5.3 DTK, CF3.5, C#) and a binary inside can be downloaded from here.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here