Answer

专注于Mobile,WinCE
  首页  :: 新随笔  :: 联系 :: 管理

[转]Disable "Display Today screen..."

Posted on 2008-09-09 09:34  answer  阅读(351)  评论(0)    收藏  举报

from: http://www.pcreview.co.uk/forums/thread-1304126.php

 

[1]

Greetings,

Does anybody know how to programmatically disable the "Display Today screen
if device is not used for xx hours" option?
This option is found in Start - Settings - Today and then the Items tab.

I am trying to lock down the terminal so users remain within my app but the
Today screen keeps popping up after 4 hours (default).
I have been through most of the registry and cannot find anything obvious.
Nor can I find much on the web.

TIA,

Justin.

 

[2]

For anybody having this issue in the future, the answer is in the following
registry entry:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Rai]
"SessionTimeout"=dword:00000000

This value represents the number of hours of inactivity until the display
goes back to the Today screen. The default value is
"SessionTimeout"=dword:00000004.
A value of "SessionTimeout"=dword:00000000 (as above) prevents the
Today screen from displaying.

HTH, Justin.

 

[3]

There is another key you can check out too, one that would completely
disable it. I don't know if this will prevent it from automatically
starting after idle time though, and, once it's disabled, it may be
replaced by a blank window that doesn't perform paint messages
(depending, it would seem, on your operating system.

Anyway, the key is:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Today and you can use the code

listed above to change the Enabled value to 1 or 0. This may be
something completely different than what you were going for, and if so
then the code above should work great.

Tristan