IBackgroundCopyError::GetError method

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

Syntax

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

Parameters

pContext [out]

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

pErrorCode [out]

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 10, version 1709 [desktop apps only]
Minimum supported server
Windows Server, version 1709 [desktop apps only]
Header
Deliveryoptimization.h
IDL
DeliveryOptimization.idl
Library
Dosvc.lib
DLL
Dosvc.dll
IID
IID_IBackgroundCopyError is defined as 19C613A0-FCB8-4F28-81AE-897C3D078F81

See also

IBackgroundCopyError

IBackgroundCopyError::GetFile