[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.sdk

EventLog.WriteEntry() not equivalent to SDK ReportEvent()

Nicholas A. Piazza

10/23/2002 6:45:00 PM

EventLog.WriteEntry() appears to be intended as the .NET
equivalent of the Platform SDK ReportEvent() function.
However, ReportEvent() allows the specification of a User
SID and an array of parameterized insertion strings.
There appears to be no overload of WriteEntry() with those
parameters. I can probably get along without the User
SID, but being able to specify insertion strings is
important. How is this supposed to be done in the .NET
EventLog class?
1 Answer

(Xin Huang [MS])

10/25/2002 4:05:00 AM

0

Unfortunately, support for SID and string array is not implemented in .NET
EventLog, at least for the current version. We can only insert one string
using EventLog.WriteEntry.

If you really need to specify SIDs and insert string array now, you can do
it through PInvoke.

Regards,
Xin

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. (c) 2002 Microsoft Corporation. All
rights
reserved.