   Check whether a  game running on my pc?
  Hi,Could anyone please tell me how to find whether any game process currently running on my machine?Any idea!Thanks,Gerald.gerald_loyola@yahoo.com   
  Run taskmgr.exe then check the Image Name list for offending processes.   ;  Hi LessBread,Thanks for the reply.I want this to be cheked at runtime (Say my standalone application should run when a game is currently running on my machine) and not manually.If the code is ic C/C++ it would be appreciated.Thanks,Gerald.;  You need to enumerate the currently running processes on your computer and then do a string compare against the process name you are looking for.  To do this you need to take a snapshot of the current running processes.  You will need to use the windows api for this (assuming you are running on windows).  The main functions you want are Process32First() and Process32Next().  Look at this tutorial.   ;  Hi mkuhlens , With thees functions can i find out whether a particual process is a game application?Thanks,Gerald.;  I don't know how you would do that If you don't have a specific process name you are looking for.  There is nothing inherently different about say a word application exe and a game exe except what the compiled code does.  Unfortunately, detecting what the code does would be impossible to do at runtime.  My first thought would be to get the average cpu usage/time of each running process and take the highest as your game process.  Games generally have high cpu usage.  However, this seems like it would be a bad hack at best.  What exactly are you trying to do? Run a process when you detect a game is running on your computer?   ;  Ya exactly the same i want to run my application if there is an extensive usage of game application in a PC.Somewhat like making the kid to play some puzzle application if he/she playing continuosuly for an hr or so.   ;  Hi mkuhlens ,Thanks for your Hint.I was able to sort out my problem.Thanks a lot.God Bless U!Regards,Gerald.   