Quote: Originally Posted by
stric 
David, could you tell me what is called when system is resuming? Or at least give me some directions. (I couldn't find anything useable in SDK help)
It's just one of the CF Events...
Place this in CF_pluginInit():
this.CF_Event_powerModeChanged += new Microsoft.Win32.PowerModeChangedEventHandler(obdii _CF_Event_powerModeChanged);
Then put this function somewhere:
private void volume_CF_Event_powerModeChanged(object sender, Microsoft.Win32.PowerModeChangedEventArgs e)
{
if(e.Mode == Microsoft.Win32.PowerModes.Resume)
{
//run code to adjust volume here
}
}
There are other members of that enumeration such as PowerModes.Standby, etc... So you can do things when it is going down or coming back up...
david