NetAuditWrite or Net32AuditWrite

The NetAuditWrite API writes an audit trail entry to the local audit log file.