Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-02-2009, 12:22 AM
Senior Member
 
Join Date: Nov 2007
Posts: 128
Default This code in swfkit?

pinvoke.net: RegisterPowerSettingNotification (user32)
Reply With Quote
  #2 (permalink)  
Old 01-03-2009, 03:11 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default

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);
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:34 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.