qmicron Posted September 22, 2006 Report Posted September 22, 2006 How to determine is executable application running or not ? Quote
crelf Posted September 22, 2006 Report Posted September 22, 2006 How to determine is executable application running or not ? Do you mean if an application is running as an executable or is an executable running? Quote
qmicron Posted September 22, 2006 Author Report Posted September 22, 2006 Is an executable running? Quote
LAVA 1.0 Content Posted September 22, 2006 Report Posted September 22, 2006 Is an executable running? A LabVIEW executable or general executable? Quote
klessm1 Posted September 22, 2006 Report Posted September 22, 2006 Is an executable running? Kind of depends on what OS you are running. If you are running windows you can check all of the windows that are open (they don't have to be visible). Each of the windows will have a name, so you can search for the executable you are looking for. You will need to call GetDesktopWindow function in user32.dll to get the handle of the desktop, then call GetWindow in user32.dll and get the child window of the desktop. Get the name of the window using the GetWindowTextA call to user32.dll. Get the next window by calling GetWindow again, but this time pass it the get next window constant. Loop on that until you run out of "next" windows. You can also parse out visible windows by calling the IsWindowVisible function in user32.dll. All of the function calls can be looked up on the microsoft devlopers website. Quote
qmicron Posted September 22, 2006 Author Report Posted September 22, 2006 Thank you, klessm1. Problem is solved. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.