MFPutWorkItemEx Function
Puts an asynchronous operation on a work queue.
Syntax
HRESULT MFPutWorkItemEx(
__in DWORD dwQueue,
__in IMFAsyncResult *pResult
);
Parameter
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.pResult [in]
A pointer to the IMFAsyncResult interface of an asynchronous result object. To create the result object, call MFCreateAsyncResult.
Rückgabewert
Returns an HRESULT value. Possible values include the following.
Rückgabecode | Beschreibung |
---|---|
S_OK | Success. |
MF_E_INVALID_WORKQUEUE | Invalid work queue identifier. For more information, see IMFAsyncCallback::GetParameters. |
MF_E_SHUTDOWN | The MFStartup function was not called, or MFShutdown was called. |
Hinweise
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.
This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:
- Windows XP mit Service Pack 2 (SP2) und höher.
- Windows XP Media Center Edition 2005 with KB900325 (Windows XP Media Center Edition 2005) and KB925766 (Oktober 2006 Updaterollup für Windows XP Media Center Edition) installed.
Anforderungen
Mindestens unterstützter Client |
Windows Vista |
Mindestens unterstützter Server |
Windows Server 2008 |
Header |
Mfapi.h |
Bibliothek |
Mfplat.lib |
DLL |
Mfplat.dll |