RtwqGetWorkQueueMMCSSClass function (rtworkq.h)

Retrieves the Multimedia Class Scheduler Service (MMCSS) class currently associated with this work queue.

Syntax

HRESULT RtwqGetWorkQueueMMCSSClass(
  [in]      DWORD workQueueId,
  [out]     PWSTR usageClass,
  [in, out] DWORD *usageClassLength
);

Parameters

[in] workQueueId

Identifier for the work queue. The identifier is retrieved by the RtwqAllocateWorkQueue function.

[out] usageClass

Pointer to a buffer that receives the name of the MMCSS class. This parameter can be NULL.

[in, out] usageClassLength

On input, specifies the size of the usageClass buffer, in characters. On output, receives the required size of the buffer, in characters. The size includes the terminating null character.

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