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 7091193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:09:14+00:00 2026-05-28T08:09:14+00:00

My Windows XP/7 program launches a child process using the Windows API CreateProcess() function

  • 0

My Windows XP/7 program launches a child process using the Windows API CreateProcess() function as part of its operations. I want to be able to “sandbox” the application in one but only one particular way. I do not want to let the child process spawn processes of its own (grandchildren). Is there a way to do this without having to do any hooking or DLL injections (or IAT patching)?

I saw this MSDN page on Process Security and Access Rights:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms684880(v=vs.85).aspx

I noticed the following process specific access rights:

PROCESS_CREATE_PROCESS (0x0080) Required to create a process.

Could I launch the child process in the suspended state, remove that access right via an XOR operation, update the child process’ access rights with SetSecurityDescriptor(), and resume it to keep it from creating its own child processes? Or should I apply it to the EXE file on disk instead? Would this work?

If so, I’d appreciate a good code sample using SetSecurityDescriptor() that would show me the nuances of doing this propertly. If this approach would not work, any ideas or tips you might have would be appreciated.

  • 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-05-28T08:09:15+00:00Added an answer on May 28, 2026 at 8:09 am

    You can use Job objects to set limits on the processes in a job: JOBOBJECT_BASIC_LIMIT_INFORMATION.ActiveProcessLimit

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

Sidebar

Related Questions

I want to redirect the output of some Windows program directly to gvim basically
I have a test driver program that launches a separate test server process. The
I am creating a GUI using Java. This GUI launches a program from the
I'm using C#'s System.Diagnostic.Process object. One of its properties is Id . The Id
I want for my program to be able to launch another copy of itself,
I'm porting a windows program from 32 -> 64 bit. It has a 32
How can you open windows program by pressing a button on web page I
I'm coding a windows program which is a WYSIWYG form generator. In a very
I have a c++/windows program that receives data from another c++ program via a
I would like to call a windows program within my code with parameters determined

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.