Contents Index Topic Contents | ||
Previous Topic: IScheduledWorkItem::GetErrorRetryInterval Next Topic: IScheduledWorkItem::GetFlags |
IScheduledWorkItem::GetExitCode
HRESULT GetExitCode( DWORD * pdwExitCode );Retrieves the work item's last exit code.
- Returns the error from the last attempt to start the work item. Possible values include:
S_OK The attempt to start the work item was successful. SCHED_S_TASK_HAS_NOT_RUN No attempt has ever been made to start this work item. E_INVALIDARG The arguments are not valid. E_OUTOFMEMORY Not enough memory is available.
- pdwExitCode
- Address of a value that is set to the exit code that the work item returned when it last stopped running. If the work item has never been started, this will be set to zero.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.