IRunnableTask::Run method

Requests that a task begin.

Syntax


HRESULT Run();

Parameters

This method has no parameters.

Return value

Type: HRESULT

Returns one of the following two codes.

Return codeDescription
S_OK

Execution is complete.

E_PENDING

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

Minimum supported client

Windows 2000 Professional, Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shell32.dll (version 5.0 or later)

 

 

Show: