IMFWorkQueueServices::GetTopologyWorkQueueMMCSSClass method (mfidl.h)

Retrieves the Multimedia Class Scheduler Service (MMCSS) class for a specified branch of the current topology.

Syntax

HRESULT GetTopologyWorkQueueMMCSSClass(
  [in]      DWORD  dwTopologyWorkQueueId,
  [out]     LPWSTR pwszClass,
  [in, out] DWORD  *pcchClass
);

Parameters

[in] dwTopologyWorkQueueId

Identifies the work queue assigned to this topology branch. The application defines this value by setting the MF_TOPONODE_WORKQUEUE_ID attribute on the source node for the branch.

[out] pwszClass

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

[in, out] pcchClass

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

Return value

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

Return code Description
S_OK
The method succeeded.
E_INVALIDARG
There is no work queue with the specified identifier.
MF_E_BUFFERTOOSMALL
The pwszClass buffer is too small to receive the class name.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header mfidl.h
Library Mfuuid.lib

See also

IMFWorkQueueServices