Some MFC Process Checking ???
-
Hi there, Some MFC Process Checking : 1. How can i check if a process is running in the same machine already ? (I mean i want to run the same process/App. only once in the machine - how can i check if the process is already running on the machine ?) 2. How can i do the same to check if the process is running in the network ? (I have a Lan Network of Lan and i want to check if the process/App. is already running on one of the machines (pc) is this possible ?) Thank you alot, Ariel.
-
Hi there, Some MFC Process Checking : 1. How can i check if a process is running in the same machine already ? (I mean i want to run the same process/App. only once in the machine - how can i check if the process is already running on the machine ?) 2. How can i do the same to check if the process is running in the network ? (I have a Lan Network of Lan and i want to check if the process/App. is already running on one of the machines (pc) is this possible ?) Thank you alot, Ariel.
use EnumProcesses to get a list of running processes and look for the one you are interested in to detect on a network machine i would build a small messaging system into the app that responds to a ping on a specified port ... as the app starts up try pinging the port on each machine and see if you get response ... if not u night be able to assume it isnt running ... security allowing and all "every year we invent better idiot proof systems and every year they invent better idiots"
-
Hi there, Some MFC Process Checking : 1. How can i check if a process is running in the same machine already ? (I mean i want to run the same process/App. only once in the machine - how can i check if the process is already running on the machine ?) 2. How can i do the same to check if the process is running in the network ? (I have a Lan Network of Lan and i want to check if the process/App. is already running on one of the machines (pc) is this possible ?) Thank you alot, Ariel.
Check this: The TList sample is a task list application. It is SDK based, but you gonna surely get good ideas from it for start!
-
use EnumProcesses to get a list of running processes and look for the one you are interested in to detect on a network machine i would build a small messaging system into the app that responds to a ping on a specified port ... as the app starts up try pinging the port on each machine and see if you get response ... if not u night be able to assume it isnt running ... security allowing and all "every year we invent better idiot proof systems and every year they invent better idiots"
Hi there, Firstly, Thank you very much for the answer. I would like 2 ask 2 more favours if you can : 1. Can you show me a small example of the EnumProcesses - how to catch the processes ? 2. On a Network if i'm actually running all the processes on a disk of one machine (which means i access \\AnotherComp\c\APP\MyApp.exe and thats the only place where the source is. Does this change the answer you gave for Network pinging ? Can you explain a bit more about it ? (Code headers will be apritiated here too) Thanks again for your answer, Ariel.
-
Check this: The TList sample is a task list application. It is SDK based, but you gonna surely get good ideas from it for start!
-
Hi there, Firstly, Thank you very much for the answer. I would like 2 ask 2 more favours if you can : 1. Can you show me a small example of the EnumProcesses - how to catch the processes ? 2. On a Network if i'm actually running all the processes on a disk of one machine (which means i access \\AnotherComp\c\APP\MyApp.exe and thats the only place where the source is. Does this change the answer you gave for Network pinging ? Can you explain a bit more about it ? (Code headers will be apritiated here too) Thanks again for your answer, Ariel.
when you run an app from a network drive the app gets copied to the local machine and executes there so it makes no difference where it is stored ... the tlist example is a good place to look at process enumeration ... there are several chat and ping utilities here also that will do all you need for network communication between machines :) "every year we invent better idiot proof systems and every year they invent better idiots"
-
Hi there, Some MFC Process Checking : 1. How can i check if a process is running in the same machine already ? (I mean i want to run the same process/App. only once in the machine - how can i check if the process is already running on the machine ?) 2. How can i do the same to check if the process is running in the network ? (I have a Lan Network of Lan and i want to check if the process/App. is already running on one of the machines (pc) is this possible ?) Thank you alot, Ariel.
> 1. How can i check if a process is running in the same machine already ? (I mean i want to run > the same process/App. only once in the machine - how can i check if the process is already > running on the machine ?) See: Q243953 - HOWTO: Limit 32-bit Applications to One Instance Using C++
-
Thank you alot for this - i think its very usefull - i'll give it a better look soon. Just wanted to thank you, Ariel.