DXGKDDI_MONITORFREQUENCYRANGESET_GETNUMFREQUENCYRANGES callback function

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_CONST_D3DKMDT_HMONITORFREQUENCYRANGESET hMonitorFrequencyRangeSet,
  OUT_PSIZE_T_CONST pNumMonitorFrequencyRanges
)
{...}

Parameters

hMonitorFrequencyRangeSet

[in] 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.

pNumMonitorFrequencyRanges

[out] 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

   
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3dkmddi.h (include D3dkmddi.h)
IRQL PASSIVE_LEVEL