向多媒体类计划程序服务(MMCSS)注册标准Microsoft Media Foundation 平台工作队列。
Syntax
HRESULT MFRegisterPlatformWithMMCSS(
[in] PCWSTR wszClass,
[in, out] DWORD *pdwTaskId,
[in] LONG lPriority
);
参数
[in] wszClass
MMCSS 任务的名称。
[in, out] pdwTaskId
MMCSS 任务标识符。 在输入时,指定现有的 MCCSS 任务组 ID,或使用值零创建新的任务组。 在输出中,接收实际的任务组 ID。
[in] lPriority
工作队列线程的基本优先级。
返回值
如果此函数成功,它将返回 S_OK。 否则,它将返回 HRESULT 错误代码。
注解
若要从 MMCSS 类取消注册平台工作队列,请调用 MFUnregisterPlatformFromMMCSS。
要求
| Requirement | 价值 |
|---|---|
| 最低支持的客户端 | Windows 8 [仅限桌面应用] |
| 支持的最低服务器 | Windows Server 2012 [仅限桌面应用] |
| 目标平台 | Windows操作系统 |
| Header | mfapi.h |
| Library | Mfplat.lib |
| DLL | Mfplat.dll |