SetProcessShutdownParameters for another process?

Posted on 2006-06-07
Last Modified: 2013-12-03
Does anybody know of a way of altering the shutdown level of another process? SetProcessShutdownParameters obviously only works on the caller's own process.

I thought of calling SetProcessShutdownParameters for my own process then launching the second process, but it seems the shutdown level isn't inherited?
Question by:infofinder
    LVL 8

    Assisted Solution


    It looks like the value is not inherited (always default to 0x280) . Take a loook at

    I wouldn't recomment to use this for professional development - but you can try
    creating a remote thread to your target proc's SetProcessShutdownParameters().

    LVL 48

    Accepted Solution

    You need to inject your code to another process:

    Author Comment

    Yep it looks like that's the only option, but I don't feel that the risks and hassle of such an approach are justified in this case. I've contacted the author of the other software to see if they'd consider adding an extension to get the desired effect.

    But thanks mxjijo and AlexFM - at least now I know I'm not missing a simple API that would do the job!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
    A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now