Login Screen instead of Reboot

Posted: 02-13-2006, 02:43 PM
Hello all,

the following issue is giving us sleepless nights.

On our Minimalsystems one is able to open a taskmanager via some special key
combo and the "runas" command.
To reboot a machine we coded some small program that sets the appropriate
permissions on the current process and uses the "ExitWindowsEx" function to
do the reboot.

Everything worked fine up to a few days ago. Now it is _sometimes_ the case
that the machine does not reboot but logs out the current user and displays a
login screen.
The issue gets even more strange due to the fact that we use flash disks
with write protection for storage of the OS and its data. After a reboot the
system comes back again in a clean state as it was before. I haven't been
able to reliably reproduce the problem mentionend above.

Does anybody have a clue which setting or anything else might be responsible
for this problem to occur?

If I left out important information please feel free to ask. I will provide
you with the necessary information as soon as possible.

Many thanks and regards
Jens

Login Screen instead of Reboot


Responses to "Login Screen instead of Reboot"

Adora Belle Dearheart
Guest
Posts: n/a
 
Re: Login Screen instead of Reboot
Posted: 02-13-2006, 03:14 PM
Jens wrote:
> Hello all,
>
> the following issue is giving us sleepless nights.
>
> On our Minimalsystems one is able to open a taskmanager via some special key
> combo and the "runas" command.
> To reboot a machine we coded some small program that sets the appropriate
> permissions on the current process and uses the "ExitWindowsEx" function to
> do the reboot.
>
> Everything worked fine up to a few days ago. Now it is _sometimes_ the case
> that the machine does not reboot but logs out the current user and displays a
> login screen.
> The issue gets even more strange due to the fact that we use flash disks
> with write protection for storage of the OS and its data. After a reboot the
> system comes back again in a clean state as it was before. I haven't been
> able to reliably reproduce the problem mentionend above.
>
> Does anybody have a clue which setting or anything else might be responsible
> for this problem to occur?
>
> If I left out important information please feel free to ask. I will provide
> you with the necessary information as soon as possible.
>
> Many thanks and regards
> Jens
Is there any reason you're using your own rebooter rather than xpepm?
Jens
Guest
Posts: n/a
 
Re: Login Screen instead of Reboot
Posted: 02-14-2006, 12:05 PM
"Adora Belle Dearheart" wrote:
> Is there any reason you're using your own rebooter rather than xpepm?
>
xpepm is not included in our image. Besides we must have the opportunity to
issue a reboot from 3 different programs written by us and ShellExecute is
not an option.
Is there any reason why ExitWindowsEx should not work? Or the other way
round: What is doing xpepm different from ExitWindowsEx?
Adora Belle Dearheart
Guest
Posts: n/a
 
Re: Login Screen instead of Reboot
Posted: 02-14-2006, 01:28 PM
Jens wrote:
> "Adora Belle Dearheart" wrote:
>
>>Is there any reason you're using your own rebooter rather than xpepm?
>>
>
>
> xpepm is not included in our image. Besides we must have the opportunity to
> issue a reboot from 3 different programs written by us and ShellExecute is
> not an option.
> Is there any reason why ExitWindowsEx should not work? Or the other way
> round: What is doing xpepm different from ExitWindowsEx?
Not a clue. I don't do the coding here, so anything that involves having
code written is a delay, so I tend to avoid it.
KM
Guest
Posts: n/a
 
Re: Login Screen instead of Reboot
Posted: 02-14-2006, 06:30 PM
Jens,

When ExitWindowsEx fails to reboot the machine do you see anything in Event Log?
Do you set EWX_FORCE flag while calling the API?

If it stopped working suddenly, did you happen to install some custom app(s)/driver(s) recently on your image?

You can try InitiateSystemShutdown API instead.

Or you can use undocumented NtShutdownSystem, although be careful with it as it is not going to do a graceful shutdown.
http://undocumented.ntinternals.net/...ownSystem.html

--
=========
Regards,
KM
> Jens wrote:
>> "Adora Belle Dearheart" wrote:
>>
>>>Is there any reason you're using your own rebooter rather than xpepm?
>>>
>>
>>
>> xpepm is not included in our image. Besides we must have the opportunity to issue a reboot from 3 different programs written by
>> us and ShellExecute is not an option.
>> Is there any reason why ExitWindowsEx should not work? Or the other way round: What is doing xpepm different from ExitWindowsEx?
>
> Not a clue. I don't do the coding here, so anything that involves having code written is a delay, so I tend to avoid it.

 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

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 On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looping Reboot at Login Screen bside Windows Vista Install & Setup 0 09-11-2006 04:04 AM
resetting icons on reboot/login issue Peter van Rijswijk Customize Windows XP 8 01-04-2004 09:44 PM
Wrong Domain login after SYSPREP reboot oscarmok Windows XP Setup 1 11-22-2003 04:21 AM
Unable to login-Login Screen disappeared! Kath Windows XP Security & Administration 1 10-03-2003 09:52 AM
Disable Windows Login Screen- Login Automatically Arnold Gladson Customize Windows XP 1 08-19-2003 08:42 PM