开发者

How to support named data entries in Windows Event Log events with .NET?

Windows event log seems to support named data entries in event log events. However I cannot find how to write these events with .NET.

Example of such entries:

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
   <System>
     <Security /> 
   </System>
   <EventData>
     <Data Name="SubjectUserSid">S-1-5-18</Data> 
     <Data Name="SubjectUserName">DAVE-PC$</Data> 
   </EventData>
</Event>

Is there any way to do this from BC开发者_JAVA百科L? Or only PInvoke?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜