DXGKDDI_RECOMMENDMONITORMODES function

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

DXGKDDI_RECOMMENDMONITORMODES DxgkddiRecommendmonitormodes;

NTSTATUS DxgkddiRecommendmonitormodes(
  IN_CONST_HANDLE hAdapter,
  IN_CONST_PDXGKARG_RECOMMENDMONITORMODES_CONST pRecommendMonitorModes
)
{...}

Parameters

hAdapter

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.

pRecommendMonitorModes

Return Value

DxgkDdiRecommendMonitorModes returns one of the following values:

Return code Description
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

   
Windows version Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3dkmddi.h (include D3dkmddi.h)
IRQL "< DISPATCH_LEVEL"

See Also

Monitor Source Mode Set Interface

Send comments about this topic to Microsoft