PC Review


Reply
Thread Tools Rate Thread

How to auto restart shell?

 
 
Justin_Fang
Guest
Posts: n/a
 
      11th Feb 2007
Hi all,

I can not find a clear answer about this question, so I post it again.

I create a custom shell. Once the shell closed, it can not restart
automatically.
I found this issue in Winlogon. With minlogon, the shell can restart
automatically properly.
I already checked the key "AutoRestartShell" and "Shell " under both
HKLM and HKCU.

It seems that the only solution is write a watchgod program?
But once I write a watchgod program, user can find it when he presses
Alt+Tab. How to hidden it?

Is there any easy way to solve it? like change some registry keys?

Thanks,
Justin

 
Reply With Quote
 
 
 
 
KM
Guest
Posts: n/a
 
      11th Feb 2007
Justin,

> It seems that the only solution is write a watchgod program?
> But once I write a watchgod program, user can find it when he presses
> Alt+Tab. How to hidden it?


Hmm. Why would you need to create a watch-dog app with a GUI window? You can easy make it windowless and then it won't appear in the
Alt-Tab list.

If it is absolutely necessary for your watch-dog app to have a window, you can either - hide it (ShowWindow(SW_HIDE)) or add
WS_EX_TOOLWINDOW window ex-style to CreateWindowEx call.
(if your app is not using WinAPI directly but, e.g., uses .Net, find an equivalent or use P-Invoke)

> Is there any easy way to solve it? like change some registry keys?


I am really surprise the AutoRestartShell key doesn't work for you on the Winlogon based image. It should. Assuming you've got your
app that works as the shell configured properly in CD/TD (derived from Shell Prototype).


--
=========
Regards,
KM


 
Reply With Quote
 
Justin_Fang
Guest
Posts: n/a
 
      11th Feb 2007
Hi, KM,

Thank you. I will try your suggestion to modify my watch-dog program
and let you know the result soon.

Regarding AutoRestartShell key, I already checked it in both Minlogon
and Winlogon image. The values are all 1. But the restart function
only works in Minlogon image. I saw other people posted the same
problem here and their solution are all watch-dog program in VB script
or C program. Off course, it will be best to change only one key to
solve this problem. Do you have any other idea? Thank you very much.

Justin

 
Reply With Quote
 
KM
Guest
Posts: n/a
 
      12th Feb 2007
Justin,

To confirm I did some testing here and it indeed seems the AutoRestartShell key only works for Minlogon images and doesn't work for
Winlogon images.

I did a little bit more digging in to the issue with debugger. It appeared that the key was there for Windows 2000 but was removed
from Windows XP and 2003 server. Shell and logon components were revamped there including GINA that was responsible for reading and
processing the AutoRestartShell key on Win 2K. I am not sure why this functionality was removed from XP [Winlogon] but obviously
embedded guys, or whoever did the minlogon implementation, thought it would be handy on XPe and it is supported there under
Minlogon.

Sorry for confusion I created earlier. Well, I got myself confused by searching in Internet. There are quite many places on the Web
where they mention XP in the list of OSes supporting the AutoRestartShell key function which appeared to be not true. (they
typically say NT/2000/XP/2003 but it only works for 2K and earlier)

The above is to prove that you need to create a watch-dog app if you plan on using shell auto restart feature on Winlogon image.

--
=========
Regards,
KM

PS. As I wrote above I don't believe Win2003 Server supports this feature either. So I think the info on the following page is
wrong: http://technet2.microsoft.com/Window...34bd61033.mspx

> Hi, KM,
>
> Thank you. I will try your suggestion to modify my watch-dog program
> and let you know the result soon.
>
> Regarding AutoRestartShell key, I already checked it in both Minlogon
> and Winlogon image. The values are all 1. But the restart function
> only works in Minlogon image. I saw other people posted the same
> problem here and their solution are all watch-dog program in VB script
> or C program. Off course, it will be best to change only one key to
> solve this problem. Do you have any other idea? Thank you very much.
>
> Justin
>



 
Reply With Quote
 
Justin_Fang
Guest
Posts: n/a
 
      12th Feb 2007
Hi, KM,

I already finished my watch-dog program according to your suggestion.
Thank you for your effort to look into this issue. It's fine for me to
write a watch-dog program.
Thank you again for answering my questions always.

Justin

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Restart ralphs Windows XP Help 3 27th Nov 2007 04:47 PM
Auto Restart Shell =?Utf-8?B?TmV0cHdt?= Windows XP Embedded 0 21st Jun 2005 02:47 AM
Auto Restart a Custom Shell on termination YaronM Windows XP Embedded 10 28th Dec 2004 09:57 AM
make the shell auto restart =?Utf-8?B?a2V2aW4=?= Windows XP Embedded 6 15th Dec 2004 09:55 PM
Anyway to make custom shell not auto restart and shutdown? =?Utf-8?B?d2FsbnV0?= Windows XP Embedded 4 10th Nov 2004 01:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:14 PM.