Share via


MockVsActivityLog.LogEntryHr(UInt32, String, String, Int32) Method

Definition

Makes a log entry specifying entry type, package name, event text, and an HRESULT to store in the event record.

public int LogEntryHr (uint actType, string pszSource, string pszDescription, int hr);
abstract member LogEntryHr : uint32 * string * string * int -> int
override this.LogEntryHr : uint32 * string * string * int -> int
Public Function LogEntryHr (actType As UInteger, pszSource As String, pszDescription As String, hr As Integer) As Integer

Parameters

actType
UInt32

[in] Type of log entry, a value from the __ACTIVITYLOG_ENTRYTYPE enumeration.

pszSource
String

[in] Pointer to a string containing the name of the package or component making the call.

pszDescription
String

[in] Pointer to a string describing the event.

hr
Int32

[in] An HRESULT to include in the event record.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Applies to