DXGKDDI_MONITOR_RELEASEMONITORSOURCEMODESET callback function (d3dkmddi.h)

The pfnReleaseMonitorSourceModeSet function releases a handle to a monitor source mode set object.

Syntax

DXGKDDI_MONITOR_RELEASEMONITORSOURCEMODESET DxgkddiMonitorReleasemonitorsourcemodeset;

NTSTATUS DxgkddiMonitorReleasemonitorsourcemodeset(
  [in] IN_CONST_D3DKMDT_ADAPTER hAdapter,
  [in] IN_CONST_D3DKMDT_HMONITORSOURCEMODESET hMonitorSourceModeSet
)
{...}

Parameters

[in] hAdapter

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.

[in] hMonitorSourceModeSet

The handle to be released.

Return value

The pfnReleaseMonitorSourceModeSet 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 hMonitorSourceModeSet was invalid.

This function might also return other error codes that are defined in Ntstatus.h.

Remarks

When you have finished using a handle that you obtained by calling pfnAcquireMonitorSourceModeSet, you must release the handle by calling pfnReleaseMonitorSourceModeSet.

This function is also available in the DXGK_MONITOR_INTERFACE_V2 interface beginning with Windows 7.

Requirements

Requirement Value
Minimum supported client Windows Vista
Target Platform Desktop
Header d3dkmddi.h (include D3dkmddi.h)
IRQL PASSIVE_LEVEL

See also

DXGK_MONITOR_INTERFACE_V2