Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Spooling another application from an application

Spooling another application from an application

Scheduled Pinned Locked Moved C / C++ / MFC
securityquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Naveen
    wrote on last edited by
    #1

    Hi all, I found out that when an application spools another application, the child application inherits some of the attributes of parent such as, security attributes, process attributes etc.. Is there any way to remove all this inherited attributes? So that it runs as if it was launched from the explorer.I want to do it from the child application nave

    N D 2 Replies Last reply
    0
    • N Naveen

      Hi all, I found out that when an application spools another application, the child application inherits some of the attributes of parent such as, security attributes, process attributes etc.. Is there any way to remove all this inherited attributes? So that it runs as if it was launched from the explorer.I want to do it from the child application nave

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      Naveen R wrote:

      Is there any way to remove all this inherited attributes?

      Are they inherited by the child process? Are you sure? :~


      Nibu thomas Software Developer Faqs by Michael dunn

      N 1 Reply Last reply
      0
      • N Nibu babu thomas

        Naveen R wrote:

        Is there any way to remove all this inherited attributes?

        Are they inherited by the child process? Are you sure? :~


        Nibu thomas Software Developer Faqs by Michael dunn

        N Offline
        N Offline
        Naveen
        wrote on last edited by
        #3

        Nibu thomas wrote:

        Are you sure?

        yes.. In my case there is a service.. From that service it executes another application(Child application). Since services have several limitations, all that limitation gets applicable to the child application also. I want to get ride of it.. Any way? nave

        1 Reply Last reply
        0
        • N Naveen

          Hi all, I found out that when an application spools another application, the child application inherits some of the attributes of parent such as, security attributes, process attributes etc.. Is there any way to remove all this inherited attributes? So that it runs as if it was launched from the explorer.I want to do it from the child application nave

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Naveen R wrote:

          Is there any way to remove all this inherited attributes?

          Sure. Several of the arguments to CreateProcess() do just that.

          Naveen R wrote:

          I want to do it from the child application

          Do what?


          "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

          "We will be known forever by the tracks we leave." - Native American Proverb

          N 1 Reply Last reply
          0
          • D David Crow

            Naveen R wrote:

            Is there any way to remove all this inherited attributes?

            Sure. Several of the arguments to CreateProcess() do just that.

            Naveen R wrote:

            I want to do it from the child application

            Do what?


            "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

            "We will be known forever by the tracks we leave." - Native American Proverb

            N Offline
            N Offline
            Naveen
            wrote on last edited by
            #5

            Thanks David Crow, I am in situation that I cannot modify the binary of the exe the calls CreateProcess(). But I can change the Child application( the application that is been created using Createprocess).

            DavidCrow wrote:

            Do what?

            I want to remove the parent property inheritance from the child application. I want to write that code in Child application. nave

            D 1 Reply Last reply
            0
            • N Naveen

              Thanks David Crow, I am in situation that I cannot modify the binary of the exe the calls CreateProcess(). But I can change the Child application( the application that is been created using Createprocess).

              DavidCrow wrote:

              Do what?

              I want to remove the parent property inheritance from the child application. I want to write that code in Child application. nave

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              Naveen R wrote:

              I want to remove the parent property inheritance from the child application. I want to write that code in Child application.

              To my knowledge, there is no parent/child relationship when creating processes. A "child" process is on its own as soon as its created, and the "parent" can immedialtely be shut down without any ramifications to the "child." Those arguments that are passed to CreateProcess() are just used to get the process started. Onced started, that process is free to change them to other values.


              "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

              "We will be known forever by the tracks we leave." - Native American Proverb

              N 1 Reply Last reply
              0
              • D David Crow

                Naveen R wrote:

                I want to remove the parent property inheritance from the child application. I want to write that code in Child application.

                To my knowledge, there is no parent/child relationship when creating processes. A "child" process is on its own as soon as its created, and the "parent" can immedialtely be shut down without any ramifications to the "child." Those arguments that are passed to CreateProcess() are just used to get the process started. Onced started, that process is free to change them to other values.


                "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

                "We will be known forever by the tracks we leave." - Native American Proverb

                N Offline
                N Offline
                Naveen
                wrote on last edited by
                #7

                In my case there is a service.. From that service it executes another application(Child application). Since services have several limitations, all that limitation gets applicable to the child application also. I cannot even interact with the desktop from the child process. Plz tell me how to change this behaviour nave

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups