In ANSI C on Windows what is the best/easiest way to transfer data between two programs running locally without needing to write/read from a file? Data will be basic text and only one program will be sending and the other receiving. Thanks.
...
Hi ,
I'm working in fedora. I want to create a GUI in java , with two buttons : START and STOP. i have two processes : p1 and p2. When i click on START , the process p1 should run in the background and process p2 should run in the foreground. < in terminal , we do this by giving ./p1 & ./p2 > And when i click on STOP , both the processe...
Possible Duplicates:
Scrum Software
Recommendations for project management software for Scrum
I checked wikipedia, http://en.wikipedia.org/wiki/Scrum_(development)
But I am still looking for some insight from the genius minds using SO. I installed Microsoft Project 2010, and was assuming that it would have some template/plu...
Note: I've asked this question in a similiar format on superuser but it seems like it may fit here on SO better.
It definitely also is about programming as it concerns parts of the Win32 API, Windows in general and process management.
So there are these processes that can't be terminated with taskkill - system processes in general. But ...
I've been searching examples for the Win32 API C++ function TerminateProcess() but couldn't find any.
I'm not that familiar with the Win32 API in general and so I wanted to ask if someone here who is better in it than me could show me an example for,
Retrieving a process handle by its PID required to terminate it and then call Termina...
I am customizing a Process Template for TFS2008.
I am using the "MSF for Agile... v4.2" template as the base template and would like to set the version control settings of the "Project Management" document library todo the following:
Major Versions : Enabled
Documents must be checked our before they can be edited
I'm using the edit...
When 2 or more processes request data from a device/network and block (put on a wait queue) and when the data arrives, how does the driver know which process to send it to (or which process to wake up)?
...
I'm developing an OpenGL based 2d simulation with GLUT under Visual C++ 2008, sometimes when I have an assert() or unhandled exception and break into the debugger, the GLUT display window closes, but the console window remains open.They just cant be killed!!!
They do not show up with Task manager, Process Explorer or any other tool, I c...
Hi
I'm trying to show hidden form in process1 from another one was called by :
Process.Start(@"F:\MyOtherFormPath\MyOtherForm.exe",this.Handle.ToInt32());
As you can see i passed the handle number of the hidden form ,which i'm calling the "MyOtherForm" from, and i used this number to get a handle and show the hidden form from my "MyOt...
I remember coming across an article on I think CodeProject quite some time ago regarding an antivirus or antimalware some guy was writing where he hooked into the Windows API to be able to catch whenever a new process was started and was prompting he user before allowing the process to start.
I can no longer find the article, and would ...
I am trying to create a Win32 Semaphore object which is inheritable. This means that any child processes I launch may automatically have the right to act on the same Win32 object.
My code currently looks as follows:
Semaphore semaphore = new Semaphore(0, 10);
Process process = Process.Start(pathToExecutable, arguments);
But the sem...
i understand the difference between a process and a thread. and i know the difference between a user thread and a kernel thread.
my question is , how do you code any of them in c? all i know in c is how to create POSIX threads (but is this user threads or kernel threads)?
can anyone put some c code samples for a process,user thread and a...
I need to kill windows explorer's process (explorer.exe), for that
lets say i use a native NT method TerminateProcess
It works but the problem is that the explorer starts again, may be windows is doing that, anyway. When i kill explorer.exe with windows task manager, it doesn't come back, its stays killed.
I want to do whatever tas...
For example on a high traffic web server.
To reduce problems when switching a file I usually rename the old file out and then rename in the new file.
I was told some time ago that renaming a file does not change the 'inode data' so that processes reading the file can keep doing so without glitches. And, of course, rather than copying i...
Lets say within my program I want to execute two child processes, one to to execute a "ls -al" command and then pipe that into "wc" command and display the output on the terminal. How can I do this using pipe file descriptors so far the code I have written: An example would be greatly helpful
int main(int argc, char *argv[]) {
int pipef...
I have two windows application, one is a windows service which create EventWaitHandle and wait for it. Second application is a windows gui which open it by calling EventWaitHandle.OpenExisting() and try to Set the event. But I am getting an exception in OpenExisting. The Exception is "Access to the path is denied".
windows Service code
...
Hello
I have tried to do fork() and piping in main and it works perfectly fine but when I try to implement it in a function for some reason I don't get any output, this is my code:
void cmd(int **pipefd,int count,int type, int last);
int main(int argc, char *argv[]) {
int pipefd[3][2];
int i, total_cmds = 3,count = 0;
int in = 1;...
how can something print 3 times when it only goes the printing code twice? I'm coding in C and the code is in a SIGCHLD signal handler I created.
void chld_signalHandler() {
int pidadf = (int) getpid();
printf("pidafdfaddf: %d\n", pidadf);
while (1) {
int termChildPID = waitpid(-1, NULL, WNOHANG);
if (termChildPID == 0 || term...
I want to make a Task Manager program that displays this information:
Image name
memory usage
PID
How can I do this?
...
On a couple of windows XP systems I've looked at, the "System Idle Process" always has PID 0, and the "System" process always has PID 4. In a Windows program which enumerates processes, is it safe to recognise these processes by these PIDs, or can they be different in some circumstances?
...