#ifndef _NTD3DKMT_H
// rev
/**
* The D3DKMTEnumProcesses function retrieves the process IDs associated with a graphics adapter,
* without opening process handles.
*
* \param[in,out] EnumProcessList A pointer to a \ref D3DKMT_ENUM_PROCESS_LIST structure that contains the processes using the graphics adapter.
* \return NTSTATUS Successful or errant status.
* \remarks Set ProcessIdBuffer to NULL and ProcessIdCount to zero to query
* the required count. A NULL or undersized buffer returns
* STATUS_BUFFER_TOO_SMALL and updates ProcessIdCount; no partial PID array
* is returned. A NULL buffer returns STATUS_BUFFER_TOO_SMALL even when the
* required count is zero.
* Input counts greater than 0x3FFFFFFF return STATUS_INVALID_PARAMETER.
* Process IDs are ULONG values, not handles, and must not be closed.
* The required count can change between calls; retry if the buffer becomes too small.
* Unlike D3DKMTGetProcessList, this enumeration does not filter entries by whether a process
* handle can be opened. An invalid adapter or one without a render component returns
* STATUS_INVALID_PARAMETER.
*/
NTSYSAPI
NTSTATUS
NTAPI
D3DKMTEnumProcesses(
_Inout_ PD3DKMT_ENUM_PROCESS_LIST EnumProcessList
);
View code on GitHubNo description available.