#ifndef _PHNT_NTDEF_H
#ifndef _NTDEF_
//
// Specific
//
/**
* The CLIENT_ID structure contains identifiers of a process and a thread.
*
* \sa https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-tsts/a11e7129-685b-4535-8d37-21d4596ac057
*/
typedef struct _CLIENT_ID
{
HANDLE UniqueProcess;
HANDLE UniqueThread;
} CLIENT_ID, *PCLIENT_ID;
View code on GitHubThis structure defines a pair of process and thread IDs.
UniqueProcess - the process ID value.UniqueThread - the thread ID value.NtOpenProcessNtOpenThreadNtQueryInformationProcess with ProcessBasicInformation (0)NtQueryInformationThread with ThreadBasicInformation (0)