PCSleep Icon
PCSleep

PC Sleep

Core API Hook: SetSuspendState (Powrprof.dll / Win32)

Trigger Windows shell system call to enter Low Power Sleep state directly from your keyboard shortcuts.

Configuration Parameters

Parameter Type Description
No custom parameters required for this module.

config.json Mapping

{
  "Type": "PCSleep",
  "Name": "Suspend PC"
}

Save inside database layout actions configuration map.

Native Execution Hook

// PCSleep execution logic
[DllImport("Powrprof.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
public static extern bool SetSuspendState(bool hiberate, bool forceCritical, bool disableWakeEvent);

// Trigger low-power sleep state
SetSuspendState(false, false, false);

Executed within IsoCore remapping runtime loop.

← Back to Actions Directory IsoKey Module: PCSleep