I found some reference on the Thread Information Block (TIB) and the Process Environment Block (PEB)
under win32. By using the FS register.
https://en.wikipedia.org/wiki/Win32_Thread_Information_Block
However I would like to get the same information for Win64. Does anyone knows where to get the information?
Tell me more about TEB/TIB like here (https://code.google.com/p/ontl/source/browse/branches/x64/ntl/nt/teb.hxx?r=67)
Win64 PEB?printf("PEB: %X\n", __readgsqword(0x60));
mov RAX, GS:[0x60]
Is this correct?
http://stackoverflow.com/questions/10802532/fastest-way-to-get-the-tid-thread-information-block-in-a-64-bit-windows-applic
from what i can see, it's the same as 32-bit, except that the GS register is used, rather than FS
i don't have 64-bit windows to test that :P
RtlGetCurrentPeb() in ntdll.dll returns the address of the PEB in eax/rax