DXGKDDI_MONITORDESCRIPTORSET_GETNUMDESCRIPTORS callback function

The pfnGetNumDescriptors function returns the number of descriptors in a monitor descriptor set.

Syntax

DXGKDDI_MONITORDESCRIPTORSET_GETNUMDESCRIPTORS DxgkddiMonitordescriptorsetGetnumdescriptors;

NTSTATUS DxgkddiMonitordescriptorsetGetnumdescriptors(
  IN_CONST_D3DKMDT_HMONITORDESCRIPTORSET hMonitorDescriptorSet,
  OUT_PSIZE_T_CONST pNumMonitorDescriptors
)
{...}

Parameters

hMonitorDescriptorSet

[in] A handle to a monitor descriptor set object. The display miniport driver previously obtained this handle by calling the pfnGetMonitorDescriptorSet function of the Monitor interface.

pNumMonitorDescriptors

[out] A SIZE_T-typed variable that receives the number of descriptors in the set.

Return Value

The pfnGetNumDescriptors function returns one of the following values.

Return code Description
STATUS_SUCCESS The function succeeded.
STATUS_INVALID_PARAMETER An invalid parameter was supplied.
STATUS_GRAPHICS_INVALID_MONITOR_DESCRIPTORSET The handle supplied in hMonitorDescriptorSet was invalid.

Requirements

   
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3dkmddi.h (include D3dkmddi.h)
IRQL PASSIVE_LEVEL