다음을 통해 공유


ISpTaskManager::TerminateTask (Windows Embedded CE 6.0)

1/6/2010

This method interrupts the specified task.

Syntax

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 Value

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

Header sapiddk.h, sapiddk.idl
Library sapilib.lib
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

ISpTaskManager
SAPI Interfaces