How to: issue a shutdown/restart?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rob R. Ainscough

    How to: issue a shutdown/restart?

    Any hints on how have a .NET app issue a shutdown/restart?

    Thanks Rob.


  • Vadym Stetsyak

    #2
    Re: How to: issue a shutdown/restart?

    Hello, Rob!

    RRAAny hints on how have a .NET app issue a shutdown/restart?

    Use P/Invoke and call ExitWindowsEx win32 api

    --
    Regards, Vadym Stetsyak
    www: http://vadmyst.blogspot.com

    Comment

    • Barry Kelly

      #3
      Re: How to: issue a shutdown/restart?

      "Rob R. Ainscough" <robains@pacbel l.netwrote:
      Any hints on how have a .NET app issue a shutdown/restart?
      If you mean an application shutdown and restart, then
      Application.Res tart() can do the job.

      If you mean shutdown or restart the machine, I'm sure there's a way to
      do it through System.Manageme nt, but a more direct route is the
      InitiateSystemS hutdown/Ex, called via P/Invoke - http://pinvoke.net has
      the right declaration.

      -- Barry

      --

      Comment

      Working...