简体   繁体   中英

Is there an equivalent of System.Diagnostics.EventLog for C++?

I need to change the parameters of the Windows Event Log from a C++ code, and namely what is available via the System.Diagnostics.EventLog class in C#. I need to read and later possibly modify the following properties:

You can write the setting to the registry

MaximumKilobytes->MaxSize

OverflowAction&MinimumRetentionDays->Retention

You can do that by getting and setting values in the registry. Microsoft has pretty detailed documentation on this one. You would be interested in MaxSize and Retention values.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM