DXGKDDI_MONITORDESCRIPTORSET_GETNUMDESCRIPTORS callback function (d3dkmddi.h)

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

Syntax

DXGKDDI_MONITORDESCRIPTORSET_GETNUMDESCRIPTORS DxgkddiMonitordescriptorsetGetnumdescriptors;

NTSTATUS DxgkddiMonitordescriptorsetGetnumdescriptors(
  [in]  IN_CONST_D3DKMDT_HMONITORDESCRIPTORSET hMonitorDescriptorSet,
  [out] OUT_PSIZE_T_CONST pNumMonitorDescriptors
)
{...}

Parameters

[in] hMonitorDescriptorSet

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.

[out] pNumMonitorDescriptors

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

Requirement Value
Minimum supported client Windows Vista
Target Platform Desktop
Header d3dkmddi.h (include D3dkmddi.h)
IRQL PASSIVE_LEVEL