|
|||
|
|
|
|||
|
Code:
struct {
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[8];
} GUID;
dllimport "user32.dll" stdcall long RegisterPowerSettingNotification(long, GUID*, unsigned long);
dllimport "ole32.dll" stdcall Boolean IIDFromString(short*, GUID*);
var guid = new Object;
guid.value = new Struct(GUID);
IIDFromString("{5d3e9a59-e9D5-4b00-a6bd-ff34ff516548}", guid);
RegisterPowerSettingNotification(getMainWnd().handle, guid, 0);
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|