DXGK_VIDPNTOPOLOGY_INTERFACE::pfnGetPathSourceFromTarget routine

The pfnGetPathSourceFromTarget function returns the identifier of the video present source that is associated with a specified video present target.

Syntax


DXGKDDI_VIDPNTOPOLOGY_GETPATHSOURCEFROMTARGET pfnGetPathSourceFromTarget;

NTSTATUS APIENTRY pfnGetPathSourceFromTarget(
  _In_   const D3DKMDT_HVIDPNTOPOLOGY hVidTopology,
  _In_   const D3DDDI_VIDEO_PRESENT_TARGET_ID VidPnTargetId,
  _Out_  D3DDDI_VIDEO_PRESENT_SOURCE_ID *pVidPnSourceId
)
{ ... }

Parameters

hVidTopology [in]

[in] A handle to a VidPN topology object. The display miniport driver previously obtained this handle by calling the pfnGetTopology function of the DXGK_VIDPN_INTERFACE interface.

VidPnTargetId [in]

[in] An integer that identifies a particular video present source.

pVidPnSourceId [out]

[out] A pointer to a variable that receives the identifier of the video present source.

Return value

The pfnGetPathSourceFromTarget function returns one of the following values:

Return codeDescription
STATUS_SUCCESS

The function succeeded.

STATUS_GRAPHICS_INVALID_VIDPN_TOPOLOGY

The handle supplied in hVidPnTopology was invalid.

STATUS_INVALID_PARAMETER

The pointer supplied in pVidPnSourceId was in valid.

 

Remarks

A topology is a collection paths, each of which contains a (source, target) pair. A particular target belongs to at most one path, so given a target ID, there is at most one source associated with that target.

VidPN source identifiers are assigned by the operating system. DxgkDdiStartDevice, implemented by the display miniport driver, returns the number N of video present sources supported by the display adapter. Then the operating system assigns identifiers 0, 1, 2, ... N - 1.

VidPN target identifiers are assigned by the display miniport driver. DxgkDdiQueryChildRelations, implemented by the display miniport driver, returns an array of DXGK_CHILD_DESCRIPTOR structures, each of which contains an identifier.

The D3DKMDT_HVIDPNTOPOLOGY data type is defined in D3dkmdt.h.

The D3DDDI_VIDEO_PRESENT_SOURCE_ID D3DDDI_VIDEO_PRESENT_TARGET_ID data types are defined in D3dukmdt.h.

Requirements

Version

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

Header

D3dkmddi.h (include D3dkmddi.h)

IRQL

PASSIVE_LEVEL

See also

pfnEnumPathTargetsFromSource

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft