| 63 | } |
| 64 | |
| 65 | EventHandler::EventHandler() |
| 66 | { |
| 67 | eve = this; |
| 68 | aProcesses = new DWORD[maxProcess >> 2]; |
| 69 | |
| 70 | // Check display... |
| 71 | //DEVMODE current; |
| 72 | //current.dmSize = sizeof(DEVMODE); |
| 73 | //if (EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, ¤t)) |
| 74 | // currentFreq = current.dmDisplayFrequency; |
| 75 | |
| 76 | ChangePowerState(); |
| 77 | SwitchActiveProfile(conf->activeProfile, true); |
| 78 | if (conf->startMinimized) { |
| 79 | StartProfiles(); |
| 80 | } |
| 81 | acStop = CreateEvent(NULL, false, false, NULL); |
| 82 | } |
| 83 | |
| 84 | EventHandler::~EventHandler() |
| 85 | { |
nothing calls this directly
no outgoing calls
no test coverage detected