DXGKDDI_ISSUPPORTEDVIDPN callback function

The DxgkDdiIsSupportedVidPn function determines whether a specified VidPN is supported on a display adapter.

Syntax

DXGKDDI_ISSUPPORTEDVIDPN DxgkddiIssupportedvidpn;

NTSTATUS DxgkddiIssupportedvidpn(
  IN_CONST_HANDLE hAdapter,
  INOUT_PDXGKARG_ISSUPPORTEDVIDPN pIsSupportedVidPn
)
{...}

Parameters

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.

pIsSupportedVidPn

[in, out] A pointer to a DXGKARG_ISSUPPORTEDVIDPN structure. On input, the caller supplies the hDesiredVidPn member of the structure. On return, the IsVidPnSupported member receives a Boolean value that indicates whether the VidPN is supported (TRUE) or not supported (FALSE).

Return Value

DxgkDdiIsSupportedVidPn returns one of the following values

Return code Description
STATUS_SUCCESS The topology of the VidPN is valid. The IsVidPnSupported structure member is set to either TRUE or FALSE.
STATUS_GRAPHICS_INVALID_VIDPN_TOPOLOGY The topology of the VidPN implementation is invalid. The IsVidPnSupported structure member is set to FALSE.
STATUS_NO_MEMORY The function failed because it was unable to allocate memory.

Remarks

For more information about the analysis that this function must perform, see Determining Whether a VidPN is Supported on a Display Adapter.

If pIsSupportedVidPnArg->hDesiredVidPn is zero, DxgkDdiIsSupportedVidPn must set pIsSupportedVidPnArg->IsVidPnSupported to TRUE, the idea being that the display adapter can always be configured to display nothing.

DxgkDdiIsSupportedVidPn should be made pageable.

Requirements

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

See Also

DxgkDdiEnumVidPnCofuncModality