Optical drive eject action now functional.
5 using namespace System;
6 using namespace System::Windows::Forms;
10 public delegate void PowerManagerDelegate();
12 public ref class SettingNotifier
16 SettingNotifier(IntPtr aHandle, Boolean aService);
17 SettingNotifier(IntPtr aHandle);
19 void WndProc(Message% aMessage);
21 event PowerManagerDelegate^ OnMonitorPowerOn
23 void add(PowerManagerDelegate^ d);
24 void remove(PowerManagerDelegate^ d);
29 event PowerManagerDelegate^ OnMonitorPowerOff
31 void add(PowerManagerDelegate^ d);
32 void remove(PowerManagerDelegate^ d);
38 void Construct(IntPtr aHandle, Boolean aService);
40 HPOWERNOTIFY RegisterPowerSettingNotification(LPCGUID aGuid);
43 PowerManagerDelegate^ iMonitorPowerOnDelegate;
44 PowerManagerDelegate^ iMonitorPowerOffDelegate;
48 /// Window or Service handle
50 /// Specify whether we run as Window or a Service
53 int iMonitorPowerObserverCount;
54 HPOWERNOTIFY iMonitorPowerHandle;