|
I have a windows form application which needs to be the TopMost. I've set my form to be the TopMost and my application works as I'd like it to except for in one case.
There is a 3rd party application (referred to as player.exe ) that displays SWF movie...
Started by blak3r on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You can use the Process class to start flash.exe directly - and use an appropriate ProcessStartInfo could also consider using the SetWindowsHookEx API to intercept the process start API calls, and when the process is flash.exe run....
|
|
Is there a way for a child process in Python to detect if the parent process has died?
Started by Evan Fosmark on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If your Python process is running under....
Unless you have a way.
You might get away with reading your parent process' ID very early in your process immediately, and even before your process got to execute its first instruction.
|
|
I'm using CreateProcess to exec Notepad.exe, but the process parent of notepad is my own AP. When I closed my own AP, the process parent of notepad became to explorer. How would I do to put explorer as process parent for this new opened process?
Started by Yigang Wu on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You can combine, some in formation about the launching....
Then here is an article that talks about launching a non-child process.
However, from what process.
There is no built in way to set explorer.exe as the parent process right away.
|
Ask your Facebook Friends
|
Hi
When I call GetForegroundWindow from c# I am getting the explorer parent process ID (I see this from process explorer) and not the process ID of the app that is in the foreground.
Why is this and how do get the right process ID?
Malcolm
Started by Malcolm on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
So what other functions do you use to get the process ID from the window handle you get = true)] public static extern int GetForegroundWindow....
The API function GetForegroundWindow gets you a handle to the top window, not the process ID.
|
|
How can I get the file name of process from a process handle? I'm using Win32 C++ (Visual C++ Express Edition).
Thanks.
Answer Snippets (Read the full thread at stackoverflow):
process handle (WinXP, Server 2k3 or later), as does QueryFullProcessImageName for Vista and 2k8.
|
|
There is any way to run another process with ordinary rights from a process running as administrator? From a process with elevated rights I want to start a process with ordinary rights like it were started from explorer. I tried impersonation but I didn...
Started by Alex on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Interfaces and without having to mess around with process tokens or code/DLL injection..
|
|
I have a bunch of mini-server processes running. They're in the same process group as a FastCGI server I need to stop. The FastCGI server will kill everything in its process group, but I need those mini-servers to keep running.
Can I change the process...
Started by Schwern on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Also, keep in mind that you can't change the process group id to one from another session, and that you have to do the call to change the process group either from within the process that you want....
And process group leaders.
|
|
Writing my own toy shell, and have run into a bump trying to implement job control.
I am setting the process group of the child, both in the child and the parent with setpgid. My wait call is:
pid = waitpid(-pid, &status, 0)
However, waitpid returns -...
Started by Kyle Brandt on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The child inherits the parent's pid as group by default blocks until the next child terminates and then returns the process ID and status of that child..
You don't have to set the process group ID.
|
|
Hi, can someone tell me how i can capture a running process in c# using the process class if i already know the handle?
Id rather not have not have to enumerate the getrunning processes method either. pInvoke is ok if possible.
Started by Grant on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Apparently, it doesn't like you requesting the handle of process ID 0 , hence the extra condition , but process IDs are represented by....
Process .
In plain C#, it looks like you have to loop through them all:
// IntPtr myHandle = .. .
|
|
I have a process that spawns a helper process. Sometimes I need to debug start-up failures in the second process.
On Windows, I would use Image File Execution Options , or ntsd -o . However, I have no idea how to do this with gdb on OS X.
Started by jeffamaphone on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
There is a setting called follow-fork-mode that controls which....
Instead, run your parent process from within gdb or attach to the running process before it forks the helper off.
I don't think that you can have gdb launch in the same manner .
|