This method kills the thread that is running (see Table 14 and Table 15). This process may take a short amount of time to finish after this method returns.

Table 14. HRESULT Terminate Exit Code

Parameter

Description

exitCode

The exit code that will be sent to the Finished callback method, which will also be available from the GetExitCode method.

 

Table 15. Termination Codes

Returns

Description

E_FAIL

The call to terminate failed.

S_OK

The request to terminate the thread succeeded.

 

Related Topics

IBackgroundTask Interface