IMFWorkQueueServices::BeginRegisterTopologyWorkQueuesWithMMCSS method (mfidl.h)
Registers the topology work queues with the Multimedia Class Scheduler Service (MMCSS).
Syntax
HRESULT BeginRegisterTopologyWorkQueuesWithMMCSS(
[in] IMFAsyncCallback *pCallback,
[in] IUnknown *pState
);
Parameters
[in] pCallback
A pointer to the IMFAsyncCallback interface of a callback object. The caller must implement this interface.
[in] pState
A pointer to the IUnknown interface of a state object defined by the caller. This parameter can be NULL. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Each source node in the topology defines one branch of the topology. The branch includes every topology node that receives data from that node. An application can assign each branch of a topology its own work queue and then associate those work queues with MMCSS tasks.
To use this method, perform the following steps.
- Create the topology.
- Set the following attributes on the source nodes in the topology.
- MF_TOPONODE_WORKQUEUE_ID. Specifies an identifier for the work queue. The Media Session will allocate a new work queue.
- MF_TOPONODE_WORKQUEUE_MMCSS_CLASS. Specifies the MMCSS class.
- MF_TOPONODE_WORKQUEUE_MMCSS_TASKID. Specifies the MMCSS task identifier (optional). If this attribute is not set, MMCSS assigns a new task identifier.
- Queue the topology by calling IMFMediaSession::SetTopology.
- Wait for the MESessionTopologyStatus event with the MF_TOPOSTATUS_READY status.
- Call BeginRegisterTopologyWorkQueuesWithMMCSS. This method registers all of the topology work queues with MMCSS.
To unregister the topology work queues from MMCSS, call IMFWorkQueueServices::BeginUnregisterTopologyWorkQueuesWithMMCSS.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | mfidl.h |
Library | Mfuuid.lib |