Click here to Skip to main content
15,879,326 members
Articles / Mobile Apps / Windows Mobile

Windows Mobile: Kiosk Mode – Clear Today and Programs

Rate me:
Please Sign up or sign in to vote.
4.50/5 (2 votes)
22 Oct 2012CPOL1 min read 12.6K   1   5
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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionShow only "Date & Time" on the Today Screen Pin
kcmmi10-May-13 11:41
kcmmi10-May-13 11:41 
AnswerRe: Show only "Date & Time" on the Today Screen Pin
hjgode10-May-13 20:03
hjgode10-May-13 20:03 
GeneralRe: Show only "Date & Time" on the Today Screen Pin
kcmmi26-Jun-13 3:53
kcmmi26-Jun-13 3:53 
GeneralRe: Show only "Date & Time" on the Today Screen Pin
hjgode29-Jul-13 19:59
hjgode29-Jul-13 19:59 
GeneralMy vote of 4 Pin
arif1462813-Jan-13 9:41
arif1462813-Jan-13 9:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.