i've added the code for processing the raw windows messages, it will be in the next update.
But, it is a major change, because it could completely change where cf receives the event in relation to other apps (i.e. bluetooth), etc, etc,... It's working for me, but who knows...
So...
In the next update, after running CF for the first time, an xml value will be generated in [localappdata]/centrafuse/system/config.xml that looks like:
<USENEWSUSPENDRESUME>False</USENEWSUSPENDRESUME>
Exit CF, change the value to True so it looks like:
<USENEWSUSPENDRESUME>True</USENEWSUSPENDRESUME>
Run CF, now windows raw POWERBROADCAST messages will be processed for suspend/resume, instead of the .NET POWERMODECHANGED event...
So just to be clear, if you do not manually edit the config.xml and set that value to True, Centrafuse will process suspend/resume as it always has...
I hope this works!! Again, great job everyone, especially adrenaln and notre350z, you guys rock!!
