// d3dkmddi.h
DXGKDDI_RECOMMENDMONITORMODES DxgkddiRecommendmonitormodes;
NTSTATUS DxgkddiRecommendmonitormodes(
[in] IN_CONST_HANDLE hAdapter,
[in] IN_CONST_PDXGKARG_RECOMMENDMONITORMODES_CONST pRecommendMonitorModes
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
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.
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.
pRecommendMonitorModes [in]A pointer to a DXGKARG_RECOMMENDMONITORMODES structure that contains function arguments.
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.
DxgkDdiRecommendMonitorModes should be made pageable.
Monitor Source Mode Set Interface