Platform SDK: Synchronization Manager

ISyncMgrSynchronizeCallback::LogError

The registered application calls the ISyncMgrSynchronizeCallback::LogError method by the to log an information, warning, or error message into the error tab on the Synchronization Manager status dialog box.

HRESULT LogError(
  [in] DWORD dwErrorLevel,                    // Indicates the error level
  [in] const WCHAR *lpcErrorText,             // Error text
  [in] LPSYNCMGRLOGERRORINFO lpSyncLogError   // SYNCMGRLOGERRORINFO structure
);

Parameters

dwErrorLevel
[in] Indicates the error level. Values are taken from the SYNCMGRLOGLEVEL enumeration.
lpcErrorText
[in] Pointer to error text to be displayed in the Error tab.
lpSyncLogError
[in] Pointer to the SYNCMGRLOGERRORINFO structure containing additional error information. Registered applications that do not provide this data can pass NULL.

Return Values

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

S_OK
The error information was successfully logged.

Requirements

  Windows NT/2000: Requires Windows 2000 (or Windows NT 4.0 with Internet Explorer 5 or later).
  Windows 95/98: Requires Windows 95 or later (with Internet Explorer 5 or later).
  Header: Declared in Mobsync.h.

See Also

SYNCMGRLOGLEVEL, SYNCMGRLOGERRORINFO