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

  • Home
  • SEARCH
  • 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 8345193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:36:13+00:00 2026-06-09T06:36:13+00:00

I would like to do the following: create an event registered with the global

  • 0

I would like to do the following: create an event registered with the global namespace and modify it’s DACL so that:

  • Regular users can read the event state (Using WaitForSingleObject with a 0 timeout value)
  • Administrators can change the event status (SetEvent or ResetEvent)

In addition, the event will, most of the time, be initially created by a non-admin user during application initialization

The idea is to allow system administrators on a terminal service server to send a signal to all processes belonging to my application (there are many) that they should terminate as soon as possible and keep them locked. This must work across all user sessions but also provide some layer of security.

I’m struggling to find the right DACLs for the event object during creation: I cannot seem to limit the ability to change the object state to administrators only.

I’m using ConvertStringSecurityDescriptorToSecurityDescriptor to create a DACL from a SSDL string. Here is the closest I came to a working sample:

Format('D:(A;OICI;GA;;;BA)(A;OICI;0x%.8xF;;;WD)',[(SYNCHRONIZE)])

This should give ALL_ACCESS to members of the built-in Administrators group and SYNCHRONIZE to EVERYONE.

Unfortunately, the resulting ACL doesn’t work at all the way I want: if I check the resulting object state with ProcessExplorer, I see that Administrators have all the rights (as wanted) but EVERYONE still have the “Modify state” right set.

In case this matters, I’m using Delphi 6. The resulting application must be compatible with windows 2003 server/XP and up.

Thanks in advance

  • 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-09T06:36:17+00:00Added an answer on June 9, 2026 at 6:36 am

    In the second ACE you set the access rights using a format string containing 0x%.8xF (note the trailing ‘F’) so the value is set to (SYNCHRONIZE<<4) | 0xF.

    EVENT_MODIFY_STATE is 0x0002 so this permission is being included.

    Lose the trailing ‘F’ and it should work.

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

Sidebar

Related Questions

I would like to create a query that returns rows in the following format:
i have the following problem: i would like to create a footer. that footer
I have the following actor for which I would like to create unit tests
I am relatively new to WPF and would like to create a UserControl that
I have a route like following, ideally I would like it to match: domain.com/layout/1-slug-is-the-name-of-the-page
I would like to do something like the following with spark. <viewdata model=IList[[string]] />
I would like to use something like the following: SELECT city FROM cities WHERE
I would like to do something like the following: if params[:entry].include? (http || www
I would like to parse free-text time intervals like the following, using Python: 1
I want something like the following but would like it to be reusable for

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.