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