AfxLogEventfunction
Adds an event entry to a log file.
Syntax
FUNCTION AfxLogEvent (BYVAL nType AS LONG, BYREF wszMessage AS WSTRING) AS HRESULT
Parameters
| Name | Description | |
|---|---|---|
nType | Integer value representing the event type. | |
wszMessage | String 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