LogTimeProvEventFunc callback function (timeprov.h)

Logs a time provider event in the event log.

Syntax

LogTimeProvEventFunc Logtimeproveventfunc;

HRESULT Logtimeproveventfunc(
  [in] WORD wType,
  [in] WCHAR *wszProvName,
  [in] WCHAR *wszMessage
)
{...}

Parameters

[in] wType

The event type. This parameter can be one of the following values.

Value Meaning
Error
Indicates a significant problem.
Information
Provides information about a successful operation.
Warning
Indicates a problem that is not immediately significant, but may cause future problems.

[in] wszProvName

The provider name.

[in] wszMessage

The event description.

Return value

If the function succeeds, the return value is S_OK. Otherwise, the return value is one of the error codes defined in WinError.h.

Remarks

This function provides the time provider with a simplified interface for event logging. Time providers that require more extensive event logging can perform their own event logging. For more information on event logging, see Event Logging.

The TimeProvOpen function returns a pointer to this function.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header timeprov.h

See also

TimeProvOpen