DXGKDDI_MONITORDESCRIPTORSET_GETNUMDESCRIPTORS回调函数 (d3dkmddi.h)

pfnGetNumDescriptors 函数返回监视器描述符集中的描述符数。

语法

DXGKDDI_MONITORDESCRIPTORSET_GETNUMDESCRIPTORS DxgkddiMonitordescriptorsetGetnumdescriptors;

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

参数

[in] hMonitorDescriptorSet

监视器描述符集对象的句柄。 显示微型端口驱动程序以前通过调用 Monitor 接口pfnGetMonitorDescriptorSet 函数来获取此句柄。

[out] pNumMonitorDescriptors

接收集中描述符数的SIZE_T类型变量。

返回值

pfnGetNumDescriptors 函数返回以下值之一。

返回代码 描述
STATUS_SUCCESS 函数成功。
STATUS_INVALID_PARAMETER 提供了无效参数。
STATUS_GRAPHICS_INVALID_MONITOR_DESCRIPTORSET hMonitorDescriptorSet 中提供的句柄无效。

要求

要求 价值
最低支持的客户端 Windows Vista
目标平台 桌面
标头 d3dkmddi.h (包括 D3dkmddi.h)
IRQL PASSIVE_LEVEL