Windows API reference

GetLastError

Returns the last error code set for the calling thread.

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

Detection summary

GetLastError 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

Common in general Windows applications; usage varies by application type.

Open GetLastError in the interactive atlas