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: REFIIDID used to schedule the tasks.
ulTimeOut [in]
Type: unsigned longTime, 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