DxgkDdiRecommendMonitorModes routine

The DxgkDdiRecommendMonitorModes function inspects the monitor source mode set that is associated with a particular video present target and possibly adds modes to the set.

Syntax


PDXGKDDI_RECOMMENDMONITORMODES DxgkDdiRecommendMonitorModes;

NTSTATUS APIENTRY DxgkDdiRecommendMonitorModes(
  _In_ const HANDLE                              hAdapter,
  _In_ const DXGKARG_RECOMMENDMONITORMODES CONST *pRecommendMonitorModesArg
)
{ ... }

Parameters

hAdapter [in]

A 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.

pRecommendMonitorModesArg [in]

A pointer to a DXGKARG_RECOMMENDMONITORMODES structure that contains function arguments.

Return value

DxgkDdiRecommendMonitorModes returns one of the following values:

Return codeDescription
STATUS_SUCCESS

The function succeeded.

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.

Remarks

DxgkDdiRecommendMonitorModes should be made pageable.

Requirements

Target platform

Version

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

Header

D3dkmddi.h (include D3dkmddi.h)

IRQL

< DISPATCH_LEVEL

See also

Monitor Source Mode Set Interface

 

 

Send comments about this topic to Microsoft

Show: