TerminateTasks method
Terminates a set of tasks previously scheduled by the task manager.
Syntax
HRESULT retVal = object.TerminateTasks(TaskIDs, ulCount, ulTimeOut);
Parameters
- TaskIDs [in]
-
Type: DWORD
Array of identifiers that specifies which tasks to terminate.
- ulCount [in]
-
Type: unsigned long
Number of tasks to terminate.
- ulTimeOut [in]
-
Type: unsigned long
Time, in milliseconds, to wait before terminating the tasks. If this parameter is zero, the tasks are terminated immediately.
Remarks
If the specified tasks are not running, they are removed from the queue. If they are running, they are signaled to stop.
See also
- Reference
- DXTMTASKINFO
- IDXTaskManager::ScheduleTasks
Show: