Export (0) Print
Expand All
Expand Minimize

DxgkDdiIsSupportedVidPn routine

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

Syntax


PDXGKDDI_ISSUPPORTEDVIDPN DxgkDdiIsSupportedVidPn;

NTSTATUS APIENTRY DxgkDdiIsSupportedVidPn(
  _In_     const HANDLE hAdapter,
  _Inout_  DXGKARG_ISSUPPORTEDVIDPN *pIsSupportedVidPnArg
)
{ ... }

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.

pIsSupportedVidPnArg [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 codeDescription
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

Version

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

Header

D3dkmddi.h (include D3dkmddi.h)

IRQL

PASSIVE_LEVEL

See also

DxgkDdiEnumVidPnCofuncModality

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft