如何以编程方式清除事件日志?

编程入门 行业动态 更新时间:2024-10-24 14:19:42
本文介绍了如何以编程方式清除事件日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好,

我的要求如下。

每当我更改系统日期/时间时,都会创建新条目在事件日志中。

Whenever i change the system date/time, it is creating new entry in event log.

现在我想按事件ID删除该特定事件。那么我如何实际实现呢?

Now i want to delete that particular event by event id. So how do i pragmatically achieve that?

我对我的要求有两个不同的问题

I have two different questions on my requirement

1。我可以 restrict 当我更改系统日期/时间时,条目到事件查看器?

1. Can i canrestrictthe entry to Event viewer when i change the system date/time ?

2。 我手动删除该事件日志后,也是在事件日志中为其生成相同的事件。 此条目还需要要从事件查看器中删除。所以 当我删除这样的条目时,i可以限制条目到事件查看器事件查看器? 推荐答案

感谢您联系协议论坛。 在审核中,这是其他论坛的问题。 协议论坛是针对开放规范程序的文档支持团队而非咨询支持。

Thank you for contacting the protocols forums. In reviewing, this is a question for other forums. The protocols forum is for the documentation support team on the open specifications program not advisory support.

但是,我们确实有其他论坛可以针对Windows SDK支持指导此问题。 此问题适合Windows SDK论坛:

However, we do have other forums that this question could be directedfor Windows SDK support. This question fits the Windows SDK forums:

social.msdn.microsoft/Forums/en-US/home?forum=windowssdk

social.msdn.microsoft/Forums/en-US/home?forum=windowssdk

这可以在那里发布,供社区评论并提供任何评论。

This can be posted there for community to review and offer any commentary.

谢谢你,

Nathan Manis

Nathan Manis

Microsoft协议文档支持团队

Microsoft Protocols Documentation Support Team

更多推荐

如何以编程方式清除事件日志?

本文发布于:2023-11-07 11:22:22,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1566313.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:事件   方式   日志

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!