#ifndef _NTD3DKMT_H
// rev
/**
* The D3DKMT_GET_PROCESS_LIST structure is used for retrieving a list of process handles using a graphics adapter.
* \remarks The caller is responsible for closing the returned process handles.
* The structure is 24 bytes on x64 and 20 bytes on x86; the pointed-to elements are native HANDLEs,
* not D3DKMT_HANDLE values. See D3DKMTGetProcessList for the WOW64 restriction.
*/
typedef struct _D3DKMT_GET_PROCESS_LIST
{
LUID AdapterLuid; // [in] The locally unique identifier (LUID) for the graphics adapter.
ULONG DesiredAccess; // [in] The access rights to request for the process handles. This must be `PROCESS_QUERY_INFORMATION` (0x400).
ULONG ProcessHandleCount; // [in, out] Capacity in HANDLE elements; required capacity on STATUS_BUFFER_TOO_SMALL, returned count on success.
PHANDLE ProcessHandle; // [in] Caller-supplied pointer to the output HANDLE array; NULL queries capacity.
} D3DKMT_GET_PROCESS_LIST, *PD3DKMT_GET_PROCESS_LIST;
View code on GitHubNo description available.