DosGetPID

Bindings: C, MASM

This call returns the current process ID, thread ID, and the process ID of the parent process.