Methods (8)
Namespace: CSCore.MediaFoundation

Syntax

public class MFActivate : MFAttributes

Base Type

Summary

Enables the application to defer the creation of an object. This interface is exposed by activation objects.

Remarks

For more information, see .

Uses

Methods

MFActivate(IntPtr ptr)

Initializes a new instance of the MFActivate class.

public void MFActivate(IntPtr ptr)

Parameters

ptr

IntPtr

The underlying native pointer.

ActivateObject(Guid riid)

Creates the object associated with this activation object.

public IntPtr ActivateObject(Guid riid)

Parameters

riid

Guid

Interface identifier (IID) of the requested interface.

Returns

A pointer to the requested interface. The caller must release the interface.

ActivateObject(Guid riid)

Creates the object associated with this activation object.

public T ActivateObject<T>(Guid riid)

Parameters

riid

Guid

Interface identifier (IID) of the requested interface.

Type Parameters

T

The type of the com object to create.

Returns

An instance of the requested interface.

ActivateObjectNative(Guid riid, IntPtr& ptr)

Creates the object associated with this activation object.

public Int32 ActivateObjectNative(Guid riid, IntPtr& ptr)

Parameters

riid

Guid

Interface identifier (IID) of the requested interface.

ptr

IntPtr&

Receives a pointer to the requested interface. The caller must release the interface.

Returns

HRESULT

DetachObject()

Detaches the created object from the activation object.

DetachObjectNative()

Detaches the created object from the activation object. DetachObject

public Int32 DetachObjectNative()

Returns

HRESULT

ShutdownObject()

Shuts down the created object.

ShutdownObjectNative()

Shuts down the created object. ShutdownObject

public Int32 ShutdownObjectNative()

Returns

HRESULT