!gle
The !gle extension displays the last error value for the current thread.
!gle [-all]
Parameters
-all
Displays the last error for each user-mode thread on the target system. If you omit this parameter in user mode, the debugger displays the last error for the current thread. If you omit this parameter in kernel mode, the debugger displays the last error for the thread that the current register context specifies.
DLL
Exts.dll
Additional Information
For more information about the GetLastError routine, see the Windows SDK documentation.
Remarks
The !gle extension displays the value of GetLastError and tries to decode this value.
In kernel mode, the !gle extension work only if the debugger can read the thread environment block (TEB).