Spooling another application from an application
-
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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