ISpTaskManager::TerminateTaskGroup

This method terminates a group of tasks matching the specified group identifier.

HRESULT TerminateTaskGroup(
  DWORD dwGroupId,
  ULONG ulWaitPeriod
);

Parameters

  • dwGroupId
    [in] Identifier for the task group.
  • ulWaitPeriod
    [in] Time, in milliseconds, to wait before terminating the group of tasks.

Return Values

The following table shows the possible return values.

Value Description
S_OK Function completed successfully.
FAILED(hr) Appropriate error message.

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: Sapiddk.h, Sapiddk.idl.
Link Library: Sapilib.lib.

See Also

ISpTaskManager | SAPI Interfaces

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.