Freigeben über


MFPutWorkItem Function

Puts an asynchronous operation on a work queue.

Syntax

HRESULT MFPutWorkItem(
  __in  DWORD dwQueue,
  __in  IMFAsyncCallback *pCallback,
  __in  IUnknown *pState
);

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.

  • pCallback [in]
    A pointer to the IMFAsyncCallback interface. The caller must implement this interface.

  • pState [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.

Rückgabewert

Returns an HRESULT value. Possible values include the following.

Rückgabecode Beschreibung
S_OK

Success.

MF_E_INVALID_WORKQUEUE

Invalid work queue. For more information, see IMFAsyncCallback::GetParameters.

MF_E_SHUTDOWN

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

 

Hinweise

This function creates an asynchronous result object and puts the result object on the work queue. The work queue calls the IMFAsyncCallback::Invoke method specified by pCallback.

Anforderungen

Mindestens unterstützter Client

Windows Vista

Mindestens unterstützter Server

Windows Server 2008

Header

Mfapi.h

Bibliothek

Mfplat.lib

DLL

Mfplat.dll

Siehe auch

Media Foundation Functions

Work Queues

MFPutWorkItemEx