Tuesday, June 15, 2004

GetLastError storage location

Did you know that the error number information used for GetLastError is stored at offset 0x34 from the top of the Thread Information Block (aka Thread Environment Block, or TEB)?

I didn't either, but now I do and I can't even start to count the myriad ways this will be handy in everyday life.

No comments: