Example #1
0
 public bool SetSuspendState(bool bHibernate, bool bWakeupEventsDisabled)
 {
     return(NativePowerStateManagemetInterop.SetSuspendState(bHibernate, false, bWakeupEventsDisabled));
 }
Example #2
0
 public uint CallNtPowerInformation(int informationLevel, IntPtr lpInputBuffer, int nInputBufferSize, IntPtr lpOutputBuffer,
                                    int nOutputBufferSize)
 {
     return(NativePowerStateManagemetInterop.CallNtPowerInformation(informationLevel, lpInputBuffer,
                                                                    nInputBufferSize, lpOutputBuffer, nOutputBufferSize));
 }