ISyncMgrSynchronizeCallback::LogError method

Called by a registered application to log information, warning, or an error message into the error tab on the synchronization manager status dialog box.

Syntax

HRESULT LogError(
  DWORD                     dwErrorLevel,
  LPCWSTR                   pszErrorText,
  const SYNCMGRLOGERRORINFO *pSyncLogError
);

Parameters

dwErrorLevel

Type: DWORD

The error level. Values are taken from the SYNCMGRLOGLEVEL enumeration.

pszErrorText

Type: LPCWSTR

A pointer to error text to be displayed in the error tab.

pSyncLogError

Type: const SYNCMGRLOGERRORINFO*

A pointer to the SYNCMGRLOGERRORINFO structure that contains additional error information. Registered applications that do not provide this data can pass NULL.

Return Value

Type: HRESULT

This method supports the standard return values E_INVALIDARG, E_UNEXPECTED, and E_OUTOFMEMORY, and the following:

Return code Description
S_OK
The error information is logged successfully.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header mobsync.h
DLL Mobsync.dll

See Also

ISyncMgrSynchronizeCallback

SYNCMGRLOGERRORINFO

SYNCMGRLOGLEVEL