Jump to content
Tuts 4 You

Get Last Error with out api


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:


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
Share on other sites

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...