IBackgroundCopyError::GetError method (bits.h)

Retrieves the error code and identify the context in which the error occurred.

Syntax

HRESULT GetError(
  [out] BG_ERROR_CONTEXT *pContext,
  [out] HRESULT          *pCode
);

Parameters

[out] pContext

Context in which the error occurred. For a list of context values, see the BG_ERROR_CONTEXT enumeration.

[out] pCode

Error code of the error that occurred.

Return value

This method returns S_OK on success or one of the standard COM HRESULT values on error.

Requirements

Requirement Value
Minimum supported client Windows XP
Minimum supported server Windows Server 2003
Target Platform Windows
Header bits.h
Library Bits.lib
DLL QmgrPrxy.dll

See also

IBackgroundCopyError::GetErrorContextDescription

IBackgroundCopyError::GetErrorDescription

IBackgroundCopyError::GetFile