Windows API reference

GetConsoleWindow

Returns the window handle of the console associated with the calling process, or NULL if there is none.

Library
Kernel32.dll
Category
Helper, Evasion
Suspicion
low
MITRE ATT&CK
Not mapped

Detection summary

GetConsoleWindow has no direct Sysmon or kernel ETW event; only imports, user-mode hooks and surrounding behavior expose it.

Sources and documentation

Not yet human-reviewed. Page metadata generated .

Legitimate use

Console applications and tools that need the console window handle; malware may use it to hide a console.

Open GetConsoleWindow in the interactive atlas