// d3dkmddi.h
DXGKDDI_MONITORSOURCEMODESET_CREATENEWMODEINFO DxgkddiMonitorsourcemodesetCreatenewmodeinfo;
NTSTATUS DxgkddiMonitorsourcemodesetCreatenewmodeinfo(
[in] IN_CONST_D3DKMDT_HMONITORSOURCEMODESET hMonitorSourceModeSet,
[out] DEREF_OUT_PPD3DKMDT_MONITOR_SOURCE_MODE ppNewMonitorSourceModeInfo
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The pfnCreateNewModeInfo function returns a pointer to a D3DKMDT_MONITOR_SOURCE_MODE structure that the display miniport driver populates before calling pfnAddMode.
hMonitorSourceModeSet [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]A pointer to a variable that receives a pointer to a newly created D3DKMDT_MONITOR_SOURCE_MODE structure allocated by the VidPN manager.
The pfnCreateNewModeInfo function returns one of the following values.
| Return code | Description |
|---|---|
| STATUS_SUCCESS | The function succeeded. |
| STATUS_NO_MEMORY | The function failed because it was unable to allocate enough memory. |
After you call pfnCreateNewModeInfo to obtain a D3DKMDT_MONITOR SOURCE_MODE structure, you must do one, but not both, of the following: