In user-mode I can get the a processes id with a call to
GetWindowThreadProcessId. How can I get to the corresponding
information in kernel-mode? Calling PsGetCurrentProcess will give
me a PETHREAD which probably contains this information. Is the
_ESTRUCT structure that the PETHREAD points to documented
anywhere? Are there any other options?