I've been searching a lot. Just wanted to know if by some way I can update the maximum log size of a remote system.
I'm working on event log handling and windows API's. Can someone please tell me if this is possible?
Thank you
I've been searching a lot. Just wanted to know if by some way I can update the maximum log size of a remote system.
I'm working on event log handling and windows API's. Can someone please tell me if this is possible?
Thank you
Finally found the answer to my question.
You can simply use the EvtSetChannelConfigProperty()
function and set the property identifier id parameter to EvtChannelLoggingConfigMaxSize
.
Pass a handle to the channel's configuration properties that the EvtOpenChannelConfig()
function returns. You can choose between local machine or remote machines by adjusting the parameters of the EvtOpenChannelConfig()
function.
That's it.