This commit is contained in:
Mikan
2026-03-09 21:56:44 +03:00
parent 89231b9005
commit c635b0261b
2 changed files with 24 additions and 6 deletions

View File

@@ -37,11 +37,19 @@ def register_session_listener(callback: Callable[[str], None]) -> None:
except:
pass # Already registered
# Corrected CreateWindow call with all required parameters
hwnd = win32gui.CreateWindow(
wndclass.lpszClassName,
"Session Watcher",
0, 0, 0, 0, 0,
0, hinst, None
wndclass.lpszClassName, # lpClassName
"Session Watcher", # lpWindowName
0, # dwStyle
0, # x
0, # y
0, # nWidth
0, # nHeight
0, # hWndParent
0, # hMenu
hinst, # hInstance
None # lParam
)
# Register for session notifications