Use this method to get the results of running the task on the background thread (see Table 16).

Table 16. Result Codes

Parameter

Description

pCode

Pointer to a DWORD that will be set on return or nullptr if you do not need the return value. On exit, this parameter is set to STILL_ACTIVE if the thread is running, the code returned by the task’s Execute method, or the value passed to the Terminate method if you called that method.

pHresult

Pointer to an HRESULT that will be set on return or nullptr if you do not need the HRESULT value.

 

Related Topics

IBackgroundTask Interface