#ifndef _NTD3DKMT_H
// rev
/**
* The D3DKMTGetProcessList function retrieves a list of processes that are using a specific graphics adapter.
*
* \param[in,out] GetProcessList A pointer to a \ref D3DKMT_GET_PROCESS_LIST structure that contains the processes using the graphics adapter.
* \return NTSTATUS Successful or errant status.
* \remarks Set ProcessHandle to NULL and ProcessHandleCount to zero to query
* the required capacity. STATUS_BUFFER_TOO_SMALL updates ProcessHandleCount
* without returning a partial handle array.
* On success, ProcessHandleCount counts only successfully opened handles;
* processes whose handles cannot be opened are skipped. The caller must close
* every returned handle. The process list can change between calls, so a retry
* can require a larger array. The capacity includes adapter-list entries that can be skipped,
* so it can exceed the successful handle count even if the list does not change.
* A NULL buffer returns STATUS_BUFFER_TOO_SMALL even when the required capacity is zero.
* Invalid DesiredAccess values return STATUS_INVALID_PARAMETER; an adapter without a render
* component returns STATUS_NOT_SUPPORTED. Access checks are performed when opening each process.
* \warning The WOW64 thunk marshals only one HANDLE rather than the array.
* Do not retrieve multi-handle arrays through that thunk. Use D3DKMTEnumProcesses from a WOW64
* caller, or retrieve handles in a native 64-bit process.
*/
NTSYSAPI
NTSTATUS
NTAPI
D3DKMTGetProcessList(
_Inout_ PD3DKMT_GET_PROCESS_LIST GetProcessList
);
View code on GitHubNo description available.