IRunnableTask::Run method (shobjidl_core.h)
Requests that a task begin.
Syntax
HRESULT Run();
Return value
Type: HRESULT
Returns one of the following two codes.
Return code | Description |
---|---|
|
Execution is complete. |
|
Execution is suspended. |
Remarks
The return value of this method only tells you whether the execution of the task completed or is suspended. Any other errors that the implementer needs to communicate to the caller must be provided through other channels, such as a callback function.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional, Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |
DLL | Shell32.dll (version 5.0 or later) |