RtwqLockSharedWorkQueue function (rtworkq.h)

Obtains and locks a shared work queue.

Syntax

HRESULT RtwqLockSharedWorkQueue(
  [in]      PCWSTR usageClass,
  [in]      LONG   basePriority,
  [in, out] DWORD  *taskId,
  [out]     DWORD  *id
);

Parameters

[in] usageClass

The name of the Multimedia Class Scheduler Service (MMCSS) task.

[in] basePriority

The base priority of the work-queue threads. If the regular-priority queue is being used (usageClass=""), then the value 0 must be passed in.

[in, out] taskId

The MMCSS task identifier. On input, specify an existing MCCSS task group ID, or use the value zero to create a new task group. If the regular priority queue is being used (usageClass=""), then NULL must be passed in. On output, receives the actual task group ID.

[out] id

Receives an identifier for the new work queue. Use this identifier when queuing work items.

Return value

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

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header rtworkq.h
Library Rtworkq.lib
DLL RTWorkQ.dll