Help Center

AfxLogEventfunction

Adds an event entry to a log file.

Windowsfunctiondocumented

Syntax

FUNCTION AfxLogEvent (BYVAL nType AS LONG, BYREF wszMessage AS WSTRING) AS HRESULT

Parameters

NameDescription
nTypeInteger value representing the event type.
wszMessageString value containing the log entry text.

Description

Adds an event entry to a log file.

There are six event types.

Example

AfxLogEvent(0, "Logon Script Completed Successfully")

Reference

  • Defined in AfxNova/AfxWsh.inc:127
  • Documented in Windows/Windows Script/Windows Shell.md
  • Topic: Windows Shell