» Home » Process » Page 1
Process.GetProcessById() throwing ArgumentException “ Process Not Running ” on all thread ids/process ids
Category : Programming Languages

No matter which one of these i try to use, Process.GetProcessById().ProcessName throws an exception stating ALL of the processes are not running.


[DllImport("user32.dll", SetLastError = true)]
static extern uint GetWindowThreadProcessId(IntPtr hWnd, out uint lpdwProcessId);
[DllImport("user32.dll")]
static extern uint GetWindowThreadPro

View Replies


Prevent Process 'A' from spawning Process 'B' which then shows up on top of what should be the “TopMost” Process 'C
Category : Programming Languages

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 files on a portion of the screen that popup on top of my application.


Using Process Monitor I determined that player.exe


View Replies


how to allow a process created by another process, use a part of memory of the creator process?
Category : Programming Languages

I got two console processes that second one is created by first one using the API below:


BOOL WINAPI CreateProcess(
__in_opt LPCTSTR lpApplicationName,
__inout_opt LPTSTR lpCommandLine,
__in_opt LPSECURITY_ATTRIBUTES lpProcessAttributes,
__in_opt LPSECURITY_ATTRIBUTES lpThreadAttributes,
__in BOOL bInheritHandles,
__i

View Replies


Can the thread ID of a multithreaded process be the same as the process ID of another running process?
Category : Operating Systems

I'm trying to find a way to uniquely identify threads in a multi-process environment. I have a server that keeps track of the different processes connecting to it, some of which are multi-threaded and some of which are not. To identify the threads from multi-threaded connections I'm using the thread ID as a unique identifier (there will be a maximum of 1 multi-threaded process connected at an


View Replies


Python inter-process communication, getting pid of an independent process (not child) started from another Python process
Category : Programming Languages

I have a problem that feels like it ought to be simple. As a side-note, I'm already using the multiprocessing module, so I'm somewhat reluctant to use the subprocess module. Anyway, I have a Python program, foo.py, that starts another Python program bar.py through the os.system() function.


os.system("start python ba

View Replies


Can one Process signal the event created by another process under different username(both process running under different username) ?
Category : Operating Systems

Happening in Windows 7:


I have installed process proc1.exe as service.In the proc1, i am creating new process proc2.exe by creating session id and token and passing to CreateProcessAsUser().


In the Proc2, i am creating one event which is waiting for signal.
In the Proc1, am sending the signal to that event by OpenEvent and SetEvent when i stop service.


i


View Replies


How to ensure process window launched by Process.Start(ProcessStartInfo) has focus of all Forms?
Category : Programming Languages

c#.How to ensure process window launched by Process.Start(ProcessStartInfo) has focus of all Forms?
Thanks,


View Replies


How can I send messages (or signals) from a parent process to a child process and viceversa in Perl?
Category : Development Tools & Services

Im writing a program that manage muti-processes. This is what I have done and its working great! but now, I want to send messages from the child processes to the parent process and viceversa (from the parent to the childs), do you know the best way? Do you know if what I have done is the proper way for what I want (send messages, or signals or share memory from the child processes to the parent


View Replies


Py2exe application error “The process cannot access the file because it is being used by another process”
Category : Programming Languages

I have a python script, that should update the program (clear folder and copy new files into it). It works fine, but when I run *.exe file, generated from my script(with py2exe), it gave me an error message:


Traceback (most recent call last):
File "update.py", line 10, in <module>
File "shutil.pyc", line 254, in rmtree
File "shutil.pyc", line 252, in rm

View Replies


Powershell process from java - Process may “delay” (Not hang) on some environments
Category : Java

We are creating a bunch of PoSH scripts and running them in an orderly manner from Java
(Building a process, handling all input/output streams that may cause hangups, and then invoke it using local admin privileges).


We are facing an interesting occurrence in some of our deployments.
When tracking the log file of this operation we sometime see a considerable delay. The

View Replies


Next
2012 / 2017 Copyrights BigHow , All Rights Reserved .