// d3dkmddi.h
DXGKDDI_RECOMMENDVIDPNTOPOLOGY DxgkddiRecommendvidpntopology;
NTSTATUS DxgkddiRecommendvidpntopology(
IN_CONST_HANDLE hAdapter,
[in] IN_CONST_PDXGKARG_RECOMMENDVIDPNTOPOLOGY_CONST pRecommendVidPnTopology
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The DxgkDdiRecommendVidPnTopology function creates the topology of a specified VidPN or augments the topology with a new path to video present targets.
hAdapterA handle to a context block that is associated with a display adapter. The display miniport driver previously provided this handle to the Microsoft DirectX graphics kernel subsystem in the MiniportDeviceContext output parameter of the DxgkDdiAddDevice function.
pRecommendVidPnTopology [in]A pointer to a DXGKARG_RECOMMENDVIDPNTOPOLOGY structure that contains function arguments.
DxgkDdiRecommendVidPnTopology returns one of the following values:
| Return code | Description |
|---|---|
| STATUS_SUCCESS | The function successfully created or augmented the topology. |
| STATUS_GRAPHICS_NO_RECOMMENDED_VIDPN_TOPOLOGY | The function has no recommendation for the augmentation of the specified VidPN topology. |
| STATUS_GRAPHICS_CANCEL_VIDPN_TOPOLOGY_AUGMENTATION | The function recommends to cancel the augmentation of the specified VidPN's topology on the specified source. This return code is allowed only in the case of VidPN topology augmentation. |
| STATUS_NO_MEMORY | The function failed because it was unable to allocate enough memory. |
The miniport driver should pass through any error code that it gets from the operating system for which it does not have a fallback code path.
DxgkDdiRecommendVidPnTopology should be made pageable.