C# Class WatchThis.NativeCalls

显示文件 Open project: kevintavog/WatchThis.net

Public Methods

Method Description
AllowSleep ( string name, int id ) : void
IOPMAssertionCreateWithName ( String type, int level, string name, int &id ) : int
PreventSleep ( string name ) : int

Private Methods

Method Description
IOPMAssertionCreateWithName ( IntPtr type, int level, IntPtr name, IntPtr id ) : int

Method Details

AllowSleep() static public method

static public AllowSleep ( string name, int id ) : void
name string
id int
return void

IOPMAssertionCreateWithName() static public method

static public IOPMAssertionCreateWithName ( String type, int level, string name, int &id ) : int
type String
level int
name string
id int
return int

PreventSleep() static public method

static public PreventSleep ( string name ) : int
name string
return int