rebooting from service with no login

  • Thread starter Thread starter Lauren Hines
  • Start date Start date
L

Lauren Hines

I am trying to create a service that will (among other things) reboot the
embedded xp device even if no one is logged into the system (ie. the logon
screen is currently displayed).

In my service (written in C# .NET) I have tried using the different APIs
(and variants of) InitiateSystemShutdownEx and Win32Shutdown. The return
error is always 21 ("The device is not ready"). The service works fine if
anyone is logged in, so I do not believe it is a permissions problem. I have
also tried using "shutdown.exe" to no avail.


Any help would be greatly appreciated. Thanks in advance.
 
Lauren said:
I am trying to create a service that will (among other things) reboot
the embedded xp device even if no one is logged into the system (ie.
the logon screen is currently displayed).

In my service (written in C# .NET) I have tried using the different
APIs (and variants of) InitiateSystemShutdownEx and Win32Shutdown.
The return error is always 21 ("The device is not ready"). The
service works fine if anyone is logged in, so I do not believe it is
a permissions problem. I have also tried using "shutdown.exe" to no
avail.

What problems did you have with shutdown.exe - did you try just using it in
the task scheduler?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top