Visual c++ function for detecting a process running or not
Fri Jun 05 2009, 11:20 am
hello,
i have the basic knowledge of c++ (like if, else, loops, classes, file handling, etc.). but i dont have the knowledge of .net platform.
please tell me any default function of visual c++ 2008 that can tell that a specific process is runing in the system or not ?
is there any other way using visual c++ ? please help.
i have visual studio 2008 with windows 7 rc.
i dont have a very sound knowledge of c++ so please provide a simple program link so that i can understand it correctly.
thanks
rahul
i have the basic knowledge of c++ (like if, else, loops, classes, file handling, etc.). but i dont have the knowledge of .net platform.
please tell me any default function of visual c++ 2008 that can tell that a specific process is runing in the system or not ?
is there any other way using visual c++ ? please help.
i have visual studio 2008 with windows 7 rc.
i dont have a very sound knowledge of c++ so please provide a simple program link so that i can understand it correctly.
thanks
rahul
Fri Jun 05 2009, 05:37 pm
i tried but dont find good results. most of them were .net related.
[ Edited Fri Jun 05 2009, 05:42 pm ]
Fri Jun 05 2009, 09:44 pm
Which other process are you trying to detect
and what will you do if you find it ?.
and what will you do if you find it ?.
[ Edited Fri Jun 05 2009, 09:45 pm ]
Fri Jun 05 2009, 10:09 pm
actually there is a project to design an application which runs on client to check the status of server.
i am in the initial stages of this project. i want to build a program in visual c++ which can detect the status of IIS services on the same computer.
i am in the initial stages of this project. i want to build a program in visual c++ which can detect the status of IIS services on the same computer.
[ Edited Fri Jun 05 2009, 10:11 pm ]
Fri Jun 05 2009, 10:14 pm
A lot depends on the detail of *exactly* what you are doing.
On the face of it you just need to try to connect to the server as a normal
TCP/IP client.
If the server is running you will succeed, if not you won't
On the face of it you just need to try to connect to the server as a normal
TCP/IP client.
If the server is running you will succeed, if not you won't
Fri Jun 05 2009, 10:34 pm
the first stage does not require any tcp/ip client because there is only one pc ---- no sever , no client. after the first stage i will required to learn the socket programming for visual c++ which will help in tcp/ip communication between the server and the client.
my knowledge of c++ is limited. i only knows the basic of it (with is tought in schools and college level).
i have searched a lot on net and found that psapi.dll can be used for this purpose but it is very high level of programming so i am searching for a good tutorial regarding this.
my knowledge of c++ is limited. i only knows the basic of it (with is tought in schools and college level).
i have searched a lot on net and found that psapi.dll can be used for this purpose but it is very high level of programming so i am searching for a good tutorial regarding this.
[ Edited Fri Jun 05 2009, 10:36 pm ]
Fri Jun 05 2009, 10:53 pm
i want to build a program in visual c++ which can detect the status of IIS services on the same computer.rahuljin
The IIS program (or set of programs) is a web server.
Even on a single machine you can run a server and client(s).
Once IIS is running you can contact it with a normal browser.
Fri Jun 05 2009, 11:13 pm
yes, if i get successed in getting the status of a running process, i will also find IIS services are running or not.
[ Edited Fri Jun 05 2009, 11:20 pm ]
Powered by e107 Forum System