qmicron Posted September 22, 2006 Report Share Posted September 22, 2006 How to determine is executable application running or not ? Quote Link to comment
crelf Posted September 22, 2006 Report Share 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 Link to comment
qmicron Posted September 22, 2006 Author Report Share Posted September 22, 2006 Is an executable running? Quote Link to comment
LAVA 1.0 Content Posted September 22, 2006 Report Share Posted September 22, 2006 Is an executable running? A LabVIEW executable or general executable? Quote Link to comment
klessm1 Posted September 22, 2006 Report Share 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 Link to comment
qmicron Posted September 22, 2006 Author Report Share Posted September 22, 2006 Thank you, klessm1. Problem is solved. Quote Link to comment
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.