
ISpTaskManager::TerminateTaskGroup
ISpTaskManager::TerminateTaskGroup terminates a group of tasks that match a specific group identifier.
HRESULT TerminateTaskGroup(
DWORD dwGroupId,
ULONG ulWaitPeriod
);
Parameters
- dwGroupId
- [in] Value specifying the identifier for the task group to interrupt.
- ulWaitPeriod
- [in] Number of milliseconds to wait before interrupting the task group.
Return values
Value | Description |
---|---|
S_OK | Function completed successfully. |
FAILED (hr) | Appropriate error message. |