ISyncMgrSynchronizeCallback::LogError method (mobsync.h)

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(
  [in] DWORD                     dwErrorLevel,
  [in] LPCWSTR                   pszErrorText,
  [in] const SYNCMGRLOGERRORINFO *pSyncLogError
);

Parameters

[in] dwErrorLevel

Type: DWORD

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

[in] pszErrorText

Type: LPCWSTR

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

[in] 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

Requirement Value
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