다음을 통해 공유


ISpTaskManager::TerminateTask (Windows CE 5.0)

Send Feedback

This method interrupts the specified task.

HRESULT TerminateTask(DWORD dwTaskId,ULONG ulWaitPeriod);

Parameters

  • dwTaskId
    [in] Identifier of the task to interrupt.
  • ulWaitPeriod
    [in] Time, in milliseconds, to wait before interrupting the task.

Return Values

The following table shows the possible return values.

Value Description
S_OK Function completed successfully.
S_FALSE Method timed out.
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

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.