Freigeben über


MFAllocateWorkQueue Function

Creates a new work queue.

Syntax

HRESULT MFAllocateWorkQueue(
  __out  DWORD *pdwWorkQueue
);

Parameter

  • pdwWorkQueue [out]
    Receives an identifier for the work queue.

Rückgabewert

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

Rückgabecode Beschreibung
S_OK

The function succeeded.

E_FAIL

The application exceeded the maximum number of work queues.

MF_E_SHUTDOWN

The application did not call MFStartup, or the application has already called MFShutdown.

 

Hinweise

When you are done using the work queue, call MFUnlockWorkQueue.

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

MFPutWorkItem

MFPutWorkItemEx

Work Queues