pfnGetNumFrequencyRanges 返回指定监视器频率范围集对象中的频率范围描述符的数目。
语法
DXGKDDI_MONITORFREQUENCYRANGESET_GETNUMFREQUENCYRANGES DxgkddiMonitorfrequencyrangesetGetnumfrequencyranges;
NTSTATUS DxgkddiMonitorfrequencyrangesetGetnumfrequencyranges(
[in] IN_CONST_D3DKMDT_HMONITORFREQUENCYRANGESET hMonitorFrequencyRangeSet,
[out] OUT_PSIZE_T_CONST pNumMonitorFrequencyRanges
)
{...}
参数
[in] hMonitorFrequencyRangeSet
监视频率范围集对象的句柄。 显示微型端口驱动程序以前通过调用 Monitor 接口的 pfnGetMonitorFrequencyRangeSet 函数来获取此句柄。
[out] pNumMonitorFrequencyRanges
指向接收集中描述符数的SIZE_T类型的变量的指针。
返回值
pfnGetNumFrequencyRanges 函数返回以下值之一。
| 返回代码 | 描述 |
|---|---|
| STATUS_SUCCESS | 函数成功。 |
| STATUS_INVALID_PARAMETER | 提供了无效参数。 |
| STATUS_INVALID_MONITOR_FREQUENCYRANGESET | hMonitorFrequencyRangeSet 中提供的句柄无效。 |
要求
| 要求 | 价值 |
|---|---|
| 最低支持的客户端 | Windows Vista |
| 目标平台 | 桌面 |
| 标头 | d3dkmddi.h (包括 D3dkmddi.h) |
| IRQL | PASSIVE_LEVEL |