RtwqGetWorkQueueMMCSSTaskId 函式 (rtworkq.h)
擷取目前與此工作佇列相關聯的多媒體類別排程器服務 (MMCSS) 工作識別符。
語法
HRESULT RtwqGetWorkQueueMMCSSTaskId(
[in] DWORD workQueueId,
[out] DWORD *taskId
);
參數
[in] workQueueId
工作佇列的標識碼。 標識碼是由 RtwqAllocateWorkQueue 函式所擷取。
[out] taskId
接收工作識別碼。
傳回值
如果此函式成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。
備註
若要將工作佇列與 MMCSS 工作建立關聯,請呼叫 <href=“RtwqBeginRegisterWorkQueueWithMMCSSEx”>RtwqBeginRegisterWorkQueueWithMMCSSEx。
規格需求
需求 | 值 |
---|---|
最低支援的用戶端 | Windows 8.1 [僅限傳統型應用程式] |
最低支援的伺服器 | Windows Server 2012 R2 [僅限傳統型應用程式] |
目標平台 | Windows |
標頭 | rtworkq.h |
程式庫 | Rtworkq.lib |
Dll | RTWorkQ.dll |