Hi muso,
Thank you for posting.
As for the .net EventLog Class's WriteEntry method, it calls the win32
"ReportEvent" API internally, also it always set "Null" to the userid
parameter for the ReportEvent API, this is why the written event entry
won't contains username info. Also, generally the userid info is not quite
used for application eventlog, it is mainly used for security log. If you
want to attach username info to the application eventlog (through .NET
api), you can consider append it to other text field like description.
Otherwise, we may need to directly use the WIN32 API to write eventlog
entry...
Regards,
Steven Cheng
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)