Well, that information is available in the Platform SDK (Windows API).
You can do a search on MSDN.
MSDN | Microsoft Development, Subscriptions, Resources, and More
from SDK:
Code:
SetSuspendState:
The SetSuspendState function suspends the system by shutting power down.
Depending on the Hibernate parameter,
the system either enters a suspend (sleep) state or hibernation (S4).
BOOLEAN SetSuspendState( BOOLEAN Hibernate,
BOOLEAN ForceCritical,
BOOLEAN DisableWakeEvent);
Code:
SetSystemPowerState:
The SetSystemPowerState function suspends the system by shutting power down.
Depending on the ForceFlag parameter,
the function either suspends operation immediately
or requests permission from all applications and device drivers before doing so.
BOOL SetSystemPowerState( BOOL fSuspend,
BOOL fForce);
Also, See: Power Management Functions
There may even be other API functions as well, I haven't looked.