DXGK_MONITORSOURCEMODESET_INTERFACE::pfnCreateNewModeInfo routine

The pfnCreateNewModeInfo function returns a pointer to a D3DKMDT_MONITOR_SOURCE_MODE structure that the display miniport driver populates before calling pfnAddMode.

Syntax


DXGKDDI_MONITORSOURCEMODESET_CREATENEWMODEINFO pfnCreateNewModeInfo;

NTSTATUS APIENTRY pfnCreateNewModeInfo(
  _In_   const D3DKMDT_HMONITORSOURCEMODESET hMonitorSourceModeSet,
  _Out_  D3DKMDT_MONITOR_SOURCE_MODE **ppNewMonitorSourceModeInfo
)
{ ... }

Parameters

hMonitorSourceModeSet [in]

[in] A handle to a monitor source mode set object. The display miniport driver previously obtained this handle by calling the pfnAcquireMonitorSourceModeSet function of the Monitor interface.

ppNewMonitorSourceModeInfo [out]

[out] A pointer to a variable that receives a pointer to a newly created D3DKMDT_MONITOR_SOURCE_MODE structure allocated by the VidPN manager.

Return value

The pfnCreateNewModeInfo function returns one of the following values.

Return codeDescription
STATUS_SUCCESS

The function succeeded.

STATUS_NO_MEMORY

The function failed because it was unable to allocate enough memory.

 

Remarks

After you call pfnCreateNewModeInfo to obtain a D3DKMDT_MONITOR SOURCE_MODE structure, you must do one, but not both, of the following:

Requirements

Version

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

Header

D3dkmddi.h (include D3dkmddi.h)

IRQL

PASSIVE_LEVEL

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft