The ForegroundIdleProc hook procedure is an application-defined callback function the system calls whenever the 32-bit foreground thread is about to become idle.
DWORD ForegroundIdleProc(
int code, |
// hook code |
DWORD wParam, |
// not used |
LONG lParam |
// not used |
); |
An application installs this hook procedure by specifying the WH_FOREGROUNDIDLE hook type and the pointer to the hook procedure in a call to the SetWindowsHookEx function.
ForegroundIdleProc is a placeholder for the application-defined function name.
This is a thread-specific hook.