InitiateShutdown (advapi32)
Last changed: -209.167.114.101

.
Summary
Initiates a shutdown and restart of the specified computer, and restarts any applications that have been registered for restart.

C# Signature:

  [DllImport("advapi32.dll", SetLastError = true)]
  static extern UInt32 InitiateShutdown(
    string lpMachineName,
    string lpMessage,
    UInt32 dwGracePeriod,
    UInt32 dwShutdownFlags,
    UInt32 dwReason);

VB Signature:

Declare Function InitiateShutdown Lib "advapi32.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation