Hello all, Can anybody please tell me how to get current thread ID in Native application? (inside NtProcessStartup ?)
You need to get info from Thread Information Block (TIB). See 'struct NT_TIB' in winnt.h Current thread ID has 0x24 offset. Get it as FS:[0x24]