checking hibernation status

[DllImport("PowrProf.dll", SetLastError = true, CharSet = CharSet.Auto)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool GetPwrCapabilities(
out SYSTEM_POWER_CAPABILITIES _SYSTEM_POWER_CAPABILITIES);