MFRegisterPlatformWithMMCSS function (mfapi.h)

Registers the standard Microsoft Media Foundation platform work queues with the Multimedia Class Scheduler Service (MMCSS).

Syntax

HRESULT MFRegisterPlatformWithMMCSS(
  [in]      PCWSTR wszClass,
  [in, out] DWORD  *pdwTaskId,
  [in]      LONG   lPriority
);

Parameters

[in] wszClass

The name of the MMCSS task.

[in, out] pdwTaskId

The MMCSS task identifier. On input, specify an existing MCCSS task group ID, or use the value zero to create a new task group. On output, receives the actual task group ID.

[in] lPriority

The base priority of the work-queue threads.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

To unregister the platform work queues from the MMCSS class, call MFUnregisterPlatformFromMMCSS.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header mfapi.h
DLL Mfplat.dll

See also

Media Foundation Functions

Work Queue and Threading Improvements