// d3dkmddi.h
DXGKDDI_MONITORDESCRIPTORSET_GETNUMDESCRIPTORS DxgkddiMonitordescriptorsetGetnumdescriptors;
NTSTATUS DxgkddiMonitordescriptorsetGetnumdescriptors(
[in] IN_CONST_D3DKMDT_HMONITORDESCRIPTORSET hMonitorDescriptorSet,
[out] OUT_PSIZE_T_CONST pNumMonitorDescriptors
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The pfnGetNumDescriptors function returns the number of descriptors in a monitor descriptor set.
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.
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. |