Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8782641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:37:05+00:00 2026-06-13T20:37:05+00:00

I have been tasked with writing entries to the Windows security log. The entire

  • 0

I have been tasked with writing entries to the Windows security log. The entire project is Win32 C++ code. I have already written (with help from various online resources) a logging class that handles registration, deregistration, and code for executing the ReportEvent() call. Also, I’ve done the mc.exe and rc.exe steps for my event logging, if that helps establish where I’m at in the project.

My question is a multi-parter:

  1. I’ve noticed at Filling Windows XP Security Event Log that there are some who believe this is not allowed by Windows. Others ( How to write log to SECURITY event Log in C#? ) imply otherwise. Possible or not?
  2. If it is possible, how to get it to write to the security log. Is it as simple as specifying “Security” as my source name when calling RegisterEventSource()?
  3. As far as deregistration, when should that occur? When the app is uninstalled? When the app closes? When the log entry is written?
  4. How do I look up my log entries? I look in the Windows Event Viewer, but I don’t see the entries I add with my test app, despite all the appropriate return values from the system calls. Where would I look up the events that I specified with a source name of “yarp” when I made my call to RegisterEventSource()?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T20:37:07+00:00Added an answer on June 13, 2026 at 8:37 pm

    For the moment, I’ll just deal with the first question, because the answer to that probably renders the rest irrelevant.

    Only Local Security Authority (lsass.exe) can write to the security log. This isn’t a matter that something else attempting to get the privilege will fail — it’s a matter of there not being a way for anything else to even request the privilege at all (and this is by design).

    From there, about the only answer to your other questions is “Sorry!”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been tasked with a project at work of writing a class to
I have been tasked with writing an installer with a silverlight out of browser
I have been tasked to create a form designer application in Windows Forms. The
I have been tasked with designing my web services client code to use the
I have been tasked with writing an ADP application using Access. The back-end data
So I have been tasked with writing a program that determines if a number
I am not really familiar with Joomla but I have been tasked with writing
I have been tasked with a project where I am to add a new
I've been tasked with writing a WCF service. (have not done this before.) I've
I have been tasked with reducing memory footprint of a Windows CE 5.0 application.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.