UID | title | description | old-location | ms.date | keywords | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | tech.root | req.typenames | f1_keywords | topic_type | api_type | api_location | api_name | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NC:d3dkmddi.DXGKDDI_VIDPN_CREATENEWTARGETMODESET |
DXGKDDI_VIDPN_CREATENEWTARGETMODESET (d3dkmddi.h) |
The pfnCreateNewTargetModeSet function creates a new target mode set object within a specified VidPN object. |
display\dxgk_vidpn_interface_pfncreatenewtargetmodeset.htm |
05/10/2018 |
|
DXGKDDI_VIDPN_CREATENEWTARGETMODESET, DXGKDDI_VIDPN_CREATENEWTARGETMODESET callback, VidPnFunctions_5bdc542e-e774-434b-a634-84ca5ed07d8d.xml, d3dkmddi/pfnCreateNewTargetModeSet, display.dxgk_vidpn_interface_pfncreatenewtargetmodeset, pfnCreateNewTargetModeSet, pfnCreateNewTargetModeSet callback function [Display Devices] |
d3dkmddi.h |
D3dkmddi.h |
Desktop |
Windows Vista |
PASSIVE_LEVEL |
Windows |
display |
|
|
|
|
|
The pfnCreateNewTargetModeSet function creates a new target mode set object within a specified VidPN object.
A handle to a VidPN object. The VidPN manager previously provided this handle to the display miniport driver by calling DxgkDdiEnumVidPnCofuncModality, DxgkDdiIsSupportedVidPn, or DxgkDdiRecommendFunctionalVidPn.
An integer that identifies one of the video present targets associated with the VidPN object.
A pointer to a variable that receives a handle to the newly created target mode set object.
A pointer to a variable that receives a pointer to a DXGK_VIDPNTARGETMODESET_INTERFACE structure. The structure contains pointers to functions that the display miniport driver can call to inspect and alter the target mode set object.
The pfnCreateNewTargetModeSet function returns one of the following values:
Return code | Description |
---|---|
STATUS_SUCCESS | The function succeeded. |
STATUS_GRAPHICS_INVALID_VIDPN | The handle supplied in hVidPn was invalid. |
STATUS_NO_MEMORY | The VidPN manager was unable to allocate the memory required to create the new target mode set object. |
To assign a new target mode set to a particular target in a VidPN implementation, perform the following steps:
- Call pfnCreateNewTargetModeSet to get a handle to a new target mode set object. That target mode set object belongs to a particular VidPN object that you specify.
- Use the functions of the DXGK_VIDPNTARGETMODESET_INTERFACE structure to add modes to the target mode set object.
- Call pfnAssignTargetModeSet to assign the new target mode set to a particular target.
If you obtain a handle by calling pfnCreateNewTargetModeSet and then you decide not to assign the new target mode set to a target, you must release the newly obtained handle by calling pfnReleaseTargetModeSet.
The lifetime of the DXGK_VIDPNTARGETEMODESET_INTERFACE structure returned in ppVidPnTargetModeSetInterface is owned by the operating system. Using this ownership scheme, the operating system can switch to newer implementations at run time without breaking clients of the interface.
The D3DKMDT_HVIDPN and D3DKMDT_HVIDPNTARGETMODESET data types are defined in D3dkmdt.h.