MCPcopy Create free account
hub / github.com/T-Troll/alienfx-tools / CCreateProc

Function CCreateProc

alienfx-gui/EventHandler.cpp:347–353  ·  view source on GitHub ↗

Create/destroy callback - switch profile if new/closed process in app list

Source from the content-addressed store, hash-verified

345
346// Create/destroy callback - switch profile if new/closed process in app list
347static VOID CALLBACK CCreateProc(HWINEVENTHOOK hWinEventHook, DWORD dwEvent, HWND hwnd, LONG idObject, LONG idChild, DWORD dwEventThread, DWORD dwmsEventTime) {
348
349 if (idObject == OBJID_WINDOW && idChild == CHILDID_SELF && conf->FindProfileByApp(GetProcessData(hwnd))) {
350 DebugPrint("Events: triggered\n");
351 eve->CheckProfileChange();
352 }
353}
354
355// Foreground app process change callback
356static VOID CALLBACK CForegroundProc(HWINEVENTHOOK hWinEventHook, DWORD dwEvent, HWND hwnd, LONG idObject, LONG idChild, DWORD dwEventThread, DWORD dwmsEventTime) {

Callers

nothing calls this directly

Calls 3

GetProcessDataFunction · 0.85
FindProfileByAppMethod · 0.80
CheckProfileChangeMethod · 0.80

Tested by

no test coverage detected