234 static EventLogEntry ParseWin32Record(
const PEVENTLOGRECORD pRec);
238 static bool CreateWin32EventSource(
const String& sSource,
const String& sLogName);
239 static bool Win32SourceExists(
const String& sSource);
240 static void DeleteWin32EventSource(
const String& sSource);
248 static void PurgeSourcesForLog(
const String& sLogName);
Defines common cross-platform macros, export decorators, and fundamental types.
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Represents a point in time, typically expressed as a date and time of day, relative to Coordinated Un...
Represents a strongly typed list of objects that can be accessed by index mirroring ....
Base object class for DotNetDupe mirroring .NET System.Object.
Provides reference-counted and weak pointer memory management primitives ensuring zero raw ownership.
High-performance UTF-8 / UTF-16 string manipulation class mirroring .NET System.String.
Represents a strongly typed list of objects accessible by index.
Represents a point in time, typically expressed as a date and time of day, relative to Coordinated Un...
Encapsulates a single record in the event log.
DateTimeOffset GetTimeGenerated() const
Gets the local time at which this event was generated.
String GetSource() const
Gets the name of the software that registered the event.
EventLogEntry()
Default constructor initializing an empty entry.
int GetInstanceId() const
Gets the resource identifier / event ID.
EventLogEntryType GetEntryType() const
Gets the event type of the entry.
String GetMessage() const
Gets the message associated with the event.
static void DeleteEventSource(const String &sSource)
Removes an event source registration from the local computer.
void SetSource(const String &sSource)
Sets the source name to register and use when writing to the event log.
void SetMachineName(const String &sMachineName)
Sets the name of the computer on which the event log resides.
void Close()
Closes the event log and releases read/write handles.
String GetMachineName() const
Gets the name of the computer on which the event log resides.
String GetSource() const
Gets the source name to register and use when writing to the event log.
EventLog()
Initializes a new instance of the EventLog class targeting the Application log.
static Collections::Generic::List< EventLog > GetEventLogs()
Searches for all event logs on the local computer.
static void Delete(const String &sLogName)
Removes an event log from the local computer.
void Clear()
Removes all entries from the event log.
void WriteEntry(const String &sMessage)
Writes an information entry with the specified message to the event log.
String GetLog() const
Gets the name of the log to read from or write to.
static bool SourceExists(const String &sSource)
Determines whether the specified event source is registered on the local computer.
static void CreateEventSource(const String &sSource, const String &sLogName)
Establishes the specified source name as a valid event source for writing to a log.
static bool Exists(const String &sLogName)
Determines whether the log exists on the local computer.
void SetLog(const String &sLogName)
Sets the name of the log to read from or write to.
Collections::Generic::List< EventLogEntry > GetEntries() const
Gets the contents of the event log as a list of entries.
Supports all classes in the DotNetDupe class hierarchy.
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
EventLogEntryType
Defines the event type of an event log entry.
@ FailureAudit
An audit event tracking failed security access.
@ SuccessAudit
An audit event tracking successful security access.