Bewerken

Delen via


DXGKDDI_MONITORFREQUENCYRANGESET_GETNUMFREQUENCYRANGES callback function (d3dkmddi.h)

The pfnGetNumFrequencyRanges returns the number of frequency range descriptors in a specified monitor frequency range set object.

Syntax

DXGKDDI_MONITORFREQUENCYRANGESET_GETNUMFREQUENCYRANGES DxgkddiMonitorfrequencyrangesetGetnumfrequencyranges;

NTSTATUS DxgkddiMonitorfrequencyrangesetGetnumfrequencyranges(
  [in]  IN_CONST_D3DKMDT_HMONITORFREQUENCYRANGESET hMonitorFrequencyRangeSet,
  [out] OUT_PSIZE_T_CONST pNumMonitorFrequencyRanges
)
{...}

Parameters

[in] hMonitorFrequencyRangeSet

A handle to a monitor frequency range set object. The display miniport driver previously obtained this handle by calling the pfnGetMonitorFrequencyRangeSet function of the Monitor interface.

[out] pNumMonitorFrequencyRanges

A pointer to a SIZE_T-typed variable that receives the number of descriptors in the set.

Return value

The pfnGetNumFrequencyRanges function returns one of the following values.

Return code Description
STATUS_SUCCESS The function succeeded.
STATUS_INVALID_PARAMETER An invalid parameter was supplied.
STATUS_INVALID_MONITOR_FREQUENCYRANGESET The handle supplied in hMonitorFrequencyRangeSet was invalid.

Requirements

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