DXGK_MONITOR_INTERFACE::pfnReleaseMonitorSourceModeSet routine

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

Syntax


DXGKDDI_MONITOR_RELEASEMONITORSOURCEMODESET pfnReleaseMonitorSourceModeSet;

NTSTATUS APIENTRY pfnReleaseMonitorSourceModeSet(
  _In_  const D3DKMDT_ADAPTER hAdapter,
  _In_  const D3DKMDT_HMONITORSOURCEMODESET hMonitorSourceModeSet
)
{ ... }

Parameters

hAdapter [in]

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

[in] The handle to be released.

Return value

The pfnReleaseMonitorSourceModeSet function returns one of the following values.

Return codeDescription
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

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dkmddi.h (include D3dkmddi.h)

IRQL

PASSIVE_LEVEL

See also

DXGK_MONITOR_INTERFACE_V2

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft