DXGKDDI_MONITOR_RELEASEADDITIONALMONITORMODESET callback function

The pfnReleaseAdditionalMonitorModeSet function, available in the DXGK_MONITOR_INTERFACE_V2 interface beginning with Windows 7, releases a handle to an additional monitor source mode set object that is associated with a specified monitor.

Syntax

DXGKDDI_MONITOR_RELEASEADDITIONALMONITORMODESET DxgkddiMonitorReleaseadditionalmonitormodeset;

NTSTATUS DxgkddiMonitorReleaseadditionalmonitormodeset(
  IN_CONST_D3DKMDT_ADAPTER hAdapter,
  IN_CONST_D3DDDI_VIDEO_PRESENT_TARGET_ID VideoPresentTargetId,
  IN_CONST_PDXGK_TARGETMODE_DETAIL_TIMING pAdditionalModesSet
)
{...}

Parameters

hAdapter

[in] A handle that identifies a display adapter. The Microsoft DirectX graphics kernel subsystem previously provided this handle to the display miniport driver in the DxgkInterface parameter of the DxgkDdiStartDevice function.

VideoPresentTargetId

[in] An integer that identifies one of the video present targets on the display adapter. The additional modes set object ppAdditionalModesSet returned in a call to the pfnGetAdditionalMonitorModeSet function describes the additional monitor source mode sets that are available on the monitor that is connected to this video present target.

pAdditionalModesSet

[in] A pointer to a variable that receives a DXGK_TARGETMODE_DETAIL_TIMING structure that describes a video present target's additional timing modes that are compatible with the display device. This structure was initially obtained in a call to pfnGetAdditionalMonitorModeSet.

Return Value

The pfnReleaseAdditionalMonitorModeSet function returns one of the following values.

Return code Description
STATUS_SUCCESS The function succeeded.
STATUS_GRAPHICS_INVALID_DISPLAY_ADAPTER The handle supplied in hAdapter was invalid.
STATUS_INVALID_MONITOR_SOURCEMODESET The handle supplied in ppAdditionalModesSet was invalid.

Remarks

This function is available beginning with Windows 7.

Requirements

   
Minimum supported client Available in Windows 7 and later versions of the Windows operating systems.
Target Platform Desktop
Header d3dkmddi.h (include D3dkmddi.h)
IRQL PASSIVE_LEVEL

See Also

DXGK_MONITOR_INTERFACE_V2

DXGK_MONITOR_INTERFACE_V2::pfnGetAdditionalMonitorModeSet