Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

MFPutWorkItemEx2 function

Puts an asynchronous operation on a work queue, with a specified priority.

Syntax


HRESULT MFPutWorkItemEx2(
  _In_ DWORD          dwQueue,
  _In_ LONG           Priority,
  _In_ IMFAsyncResult *pResult
);

Parameters

dwQueue [in]

The identifier for the work queue. This value can specify one of the standard Media Foundation work queues, or a work queue created by the application. For list of standard Media Foundation work queues, see Work Queue Identifiers. To create a new work queue, call MFAllocateWorkQueue or MFAllocateWorkQueueEx.

Priority [in]

The priority of the work item. Work items are performed in order of priority.

pResult [in]

A pointer to the IMFAsyncResult interface of an asynchronous result object. To create the result object, call MFCreateAsyncResult.

Return value

Returns an HRESULT value. Possible values include the following.

Return codeDescription
S_OK

Success.

MF_E_INVALID_WORKQUEUE

Invalid work queue identifier.

MF_E_SHUTDOWN

The MFStartup function was not called, or MFShutdown was called.

 

Remarks

To invoke the work item, this function passes pResult to the MFInvokeCallback function. The callback is specified when you create the result object specified by pResult.

Windows Phone 8.1: This API is supported.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Mfapi.h

Library

Mfplat.lib

DLL

Mfplat.dll

See also

Work Queues
Work Queue and Threading Improvements

 

 

Community Additions

ADD
Show:
© 2015 Microsoft