Jump to content
Tuts 4 You

Get Last Error with out api


joxxx

Recommended Posts

If you are looking to do this in code, the struct is referred to has the TEB/TIB (Thread Environment Block or Thread Information Block).

Info about it entirely here:

https://en.wikipedia.org/wiki/Win32_Thread_Information_Block
https://www.nirsoft.net/kernel_struct/vista/TEB.html

Value you are interested in is LastErrorValue. (Keep in mind some of these values can be at different offsets depending on the system used. The struct has changed over the various Windows versions.)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...