0

In my application I want to shutdown and then restart the system after completion of some task.

There is a Win32 API function, InitiateSystemShutdown() for this purpose but where is this functionality encapsulated in the .net library?

System config:Win7/VS2008

update: Found the solution here.

Community
  • 1
  • 1
rsjethani
  • 2,179
  • 6
  • 24
  • 30

1 Answers1

1

This does not exist in .NET to my knowledge. You can call it through P/Invoke though.

driis
  • 161,458
  • 45
  • 265
  • 341