PCShutdown Icon
PCShutdown

PC Shutdown

Core API Hook: ExitWindowsEx (User32.dll / Win32)

Initiate a clean, safe OS power-down process and shut down local computer hardware.

Configuration Parameters

Parameter Type Description
No custom parameters required for this module.

config.json Mapping

{
  "Type": "PCShutdown",
  "Name": "Shutdown Hardware"
}

Save inside database layout actions configuration map.

Native Execution Hook

// PCShutdown execution logic
[DllImport("user32.dll", SetLastError = true)]
public static extern bool ExitWindowsEx(uint uFlags, uint dwReason);

// Flag EWX_SHUTDOWN = 0x00000001 | EWX_FORCEIFHUNG = 0x00000010
ExitWindowsEx(0x00000001 | 0x00000010, 0);

Executed within IsoCore remapping runtime loop.

← Back to Actions Directory IsoKey Module: PCShutdown