Export (0) Print
Expand All

LogTimeProvEventFunc function

Logs a time provider event in the event log.

Syntax


HRESULT __stdcall LogTimeProvEventFunc(
  _In_  WORD wType,
  _In_  WCHAR *wszProvName,
  _In_  WCHAR *wszMessage
);

Parameters

wType [in]

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

ValueMeaning
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.

 

wszProvName [in]

The provider name.

wszMessage [in]

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

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Timeprov.h

See also

TimeProvOpen

 

 

Community Additions

ADD
Show:
© 2014 Microsoft