如何设置Windows钩子WH_FOREGROUNDIDLE和以下回调函数
DWORD CALLBACK ForegroundIdleProc( __in int code, DWORD wParam, LONG lParam );
Run Code Online (Sandbox Code Playgroud)
我试图检测线程/进程何时进入空闲状态.
我threadProccessId通过使用以下功能获得了:
GetForegroundWindow -> GetWindowThreadProcessId.
Run Code Online (Sandbox Code Playgroud)