TerminateRequest method

Terminates a task based on its request ID value that was used when the task was scheduled.

Syntax

HRESULT retVal = object.TerminateRequest(RequestID, ulTimeOut);

Parameters

  • RequestID [in]
    Type: REFIID

    ID used to schedule the tasks.

  • ulTimeOut [in]
    Type: unsigned long

    Time, in milliseconds, to wait before terminating the task. If this parameter is zero, the task is 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