DXGKDDI_VIDPNTARGETMODESET_GETNUMMODES callback function

The pfnGetNumModes function returns the number of target modes in a specified VidPN target mode set.

Syntax


DXGKDDI_VIDPNTARGETMODESET_GETNUMMODES pfnGetNumModes;

NTSTATUS APIENTRY pfnGetNumModes(
  _In_  const D3DKMDT_HVIDPNTARGETMODESET hVidPnTargetModeSet,
  _Out_       SIZE_T CONST                *pNumTargetModes
)
{ ... }

Parameters

hVidPnTargetModeSet [in]

A handle to a VidPN target mode set object. The display miniport driver previously obtained this handle by calling the pfnAcquireTargetModeSet function of the DXGK_VIDPN_INTERFACE interface.

pNumTargetModes [out]

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

Return value

The pfnGetNumModes function returns one of the following values:

Return codeDescription
STATUS_SUCCESS

The function succeeded.

STATUS_GRAPHICS_INVALID_VIDPN_TARGETMODESET

The handle supplied in hVidPnTargetModeSet was invalid.

 

Remarks

The D3DKMDT_HVIDPNTARGETMODESET data type is defined in D3dkmdt.h.

Requirements

Target platform

Desktop

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dkmddi.h (include D3dkmddi.h)

IRQL

PASSIVE_LEVEL

See also

pfnAcquireFirstModeInfo
pfnAcquireNextModeInfo

 

 

Send comments about this topic to Microsoft

Show: