Partager via


RtwqGetWorkQueueMMCSSTaskId, fonction (rtworkq.h)

Récupère l’identificateur de tâche MMCSS (Multimedia Class Scheduler Service) actuellement associé à cette file d’attente de travail.

Syntaxe

HRESULT RtwqGetWorkQueueMMCSSTaskId(
  [in]  DWORD workQueueId,
  [out] DWORD *taskId
);

Paramètres

[in] workQueueId

Identificateur de la file d’attente de travail. L’identificateur est récupéré par la fonction RtwqAllocateWorkQueue .

[out] taskId

Reçoit l’identificateur de tâche.

Valeur retournée

Si cette fonction réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT .

Remarques

Pour associer une file d’attente de travail à une tâche MMCSS, appelez RtwqBeginRegisterWorkQueueWithMMCSSEx.

Spécifications

Requirement Valeur
Client minimum requis Windows 8.1 [applications de bureau uniquement]
Serveur minimal pris en charge Windows Server 2012 R2 [applications de bureau uniquement]
plateforme cible Fenêtres
Header rtworkq.h
Library Rtworkq.lib
DLL RTWorkQ.dll