Specifies the Direct3D device manager for the video media sink to use.
public:
HRESULT SetDirectXManager(
IUnknown *pManager
)
pManager
Type: IUnknown *
Pointer to the IUnknown interface of the Direct3D device manager. The media sink queries this pointer for the IDirect3DDeviceManager9 interface.
Type: HRESULT
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
| S_OK | The method succeeded. |
Refer to Media Foundation return codes.
The media sink uses the Direct3D device manager to obtain a pointer to the Direct3D device, which it uses to allocate Direct3D surfaces. The device manager enables multiple objects in the pipeline (such as a video renderer and a video decoder) to share the same Direct3D device.
Header: Declared in mfidl.h.
Library: Use mfuuid.lib.