DXGKDDI_MONITOR_RELEASEMONITORSOURCEMODESET callback function

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

Syntax

DXGKDDI_MONITOR_RELEASEMONITORSOURCEMODESET DxgkddiMonitorReleasemonitorsourcemodeset;

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

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.

hMonitorSourceModeSet

[in] 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

   
Minimum supported client Available in Windows Vista 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