// d3dkmddi.h
DXGKDDI_RECOMMENDFUNCTIONALVIDPN DxgkddiRecommendfunctionalvidpn;
NTSTATUS DxgkddiRecommendfunctionalvidpn(
[in] IN_CONST_HANDLE hAdapter,
[in] IN_CONST_PDXGKARG_RECOMMENDFUNCTIONALVIDPN_CONST pRecommendFunctionalVidPn
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The DxgkDdiRecommendFunctionalVidPn function creates a functional VidPN that can be implemented on a specified display adapter.
hAdapter [in]A handle to a context block associated with a display adapter. The display miniport driver previously provided this handle to the DirectX graphics kernel subsystem in the MiniportDeviceContext output parameter of the DxgkDdiAddDevice function.
pRecommendFunctionalVidPn [in]A pointer to a DXGKARG_RECOMMENDFUNCTIONALVIDPN structure that contains function arguments. The caller supplies the hRecommendedFunctionalVidPn member, which is a handle to an empty VidPN object. DxgkDdiRecommendFunctionalVidPn populates the VidPN object with the elements of a functional VidPN: topology, mode sets, pinned modes.
DxgkDdiRecommendFunctionalVidPn returns one of the following values:
| Return code | Description |
|---|---|
| STATUS_SUCCESS | The function succeeded in creating a functional VidPN. |
| STATUS_GRAPHICS_NO_RECOMMENDED_FUNCTIONAL_VIDPN | The function was not able to create a functional VidPN. |
| STATUS_NO_MEMORY | The function failed because it was unable to allocate memory. |
A VidPN is functional if it satisfies the following conditions:
The job of DxgkDdiRecommendFunctionalVidPn is to create a functional VidPN that can be implemented on the display adapter. The following list gives the steps used to create a functional VidPN.
For information about how to add paths, add mode sets, assign modes, and pin modes, see VidPN Objects and Interfaces.
DxgkDdiRecommendFunctionalVidPn should be made pageable.