Windows API reference
SetWindowsHookExA
ANSI variant of SetWindowsHookEx.
- Library
- User32.dll
- Suspicion
- high
- MITRE ATT&CK
- T1056.001 Input Capture: Keylogging
Detection summary
SetWindowsHookExA has no direct event; Sysmon 7 can show a hook DLL loading, but not the hook installation.
- Sysmon: No Sysmon event mapped
- ETW: No ETW provider mapped
- Notes: Use EDR user-mode hooks or call stacks and correlate with Sysmon 7 image loads only when a hook DLL is injected. Low-level keyboard hooks can run in the installing process without a DLL load.
Sources and documentation
- Microsoft Learn documentation (direct documentation)
- MITRE ATT&CK T1056.001: Input Capture: Keylogging
- Microsoft Sysmon events
Last reviewed: . Page metadata generated .
Legitimate use
Accessibility software, remote support tools, clipboard managers and screenshot utilities.
Related APIs
- SetWindowsHookExW — User32.dll