Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

MFBeginRegisterWorkQueueWithMMCSS function

Associates a work queue with a Multimedia Class Scheduler Service (MMCSS) task.


HRESULT MFBeginRegisterWorkQueueWithMMCSS(
  _In_  DWORD dwWorkQueueId,
  _In_  LPCWSTR wszClass,
  _In_  DWORD dwTaskId,
  _In_  IMFAsyncCallback *pDoneCallback,
  _In_  IUnknown *pDoneState


dwWorkQueueId [in]

The identifier of the work queue. For private work queues, the identifier is returned by the MFAllocateWorkQueue function. For platform work queues, see Work Queue Identifiers.

wszClass [in]

The name of the MMCSS task.For more information, see Multimedia Class Scheduler Service.

dwTaskId [in]

The unique task identifier. To obtain a new task identifier, set this value to zero.

pDoneCallback [in]

A pointer to the IMFAsyncCallback interface of a callback object. The caller must implement this interface.

pDoneState [in]

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

The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.



This function is asynchronous. When the operation completes, the callback object's IMFAsyncCallback::Invoke method is called. At that point, the application should call MFEndRegisterWorkQueueWithMMCSS to complete the asynchronous request.

To unregister the work queue from the MMCSS task, call MFBeginUnregisterWorkQueueWithMMCSS.


Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]







See also

Media Foundation Functions
Work Queues



Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.