Re: How to write Events into the security log
From: Joe Richards [MVP] (humorexpress_at_hotmail.com)
Date: 05/31/05
- Next message: Joe Richards [MVP]: "Re: NetUserGetGroups inside passfilt.dll"
- Previous message: Robert N Myhre: "NetUserGetGroups inside passfilt.dll"
- In reply to: Sudheer N: "Re: How to write Events into the security log"
- Next in thread: Sudheer N: "Re: How to write Events into the security log"
- Reply: Sudheer N: "Re: How to write Events into the security log"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 30 May 2005 20:57:10 -0400
I posted a bad link previously, I meant
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/reportevent.asp
It indicates that for XPSP2 you need to use something else
As of Windows XP SP2, this parameter cannot be a handle to the Security log. To
write an event to the Security log, use the AuthzReportSecurityEvent function.
Before this, you have to make sure you enable the appropriate privilege - off
the top of my head I believe it was SeSecurityPrivilege.
There are no other mechanisms to write to the event logs.
joe
-- Joe Richards Microsoft MVP Windows Server Directory Services www.joeware.net Sudheer N wrote: > I tried already using Registereventsource() and Reportevent() functions given > in the MSDN. The Registereventsource() function not returning the handle of > securitylog. It is giving error codes 5 and 6. It is not possible to write in > the securitylog eventthough i am having administrator privileges. I want to > write events into the securitylog for local and remote systems. I am using > the windowsxp. I know the functions which works only in Winnt systems.Those > are authzregistersecurityeventsource() and authzreportsecurityevent(). I want > any other way to write events into the security log. Because i must write > events into the security log of local and remote systems. Please help me. > > "Joe Richards [MVP]" wrote: > > >>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/reporting_an_event.asp >> >>-- >>Joe Richards Microsoft MVP Windows Server Directory Services >>www.joeware.net >> >> >>Sudheer N wrote: >> >>>Hi, >>> I am Sudheer. I am a Software Engineer - Newly Joined.This is my first >>>post. How to write events into the security log. It is not possible to write >>>events into the security log for local system having administrator >>>privileges. Please help me in this issue how to write security events into >>>the security log for remote and local systems. Please help me. >>> >>
- Next message: Joe Richards [MVP]: "Re: NetUserGetGroups inside passfilt.dll"
- Previous message: Robert N Myhre: "NetUserGetGroups inside passfilt.dll"
- In reply to: Sudheer N: "Re: How to write Events into the security log"
- Next in thread: Sudheer N: "Re: How to write Events into the security log"
- Reply: Sudheer N: "Re: How to write Events into the security log"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|