Hi, I was just wondering if there was a way to know if a certain program(a DOS window) is open or not. If there is, would you guys please tell me. It would be a big help!
thankx!
Hi, I was just wondering if there was a way to know if a certain program(a DOS window) is open or not. If there is, would you guys please tell me. It would be a big help!
thankx!
Look at your start bar. Do you see it there? If so, it's running. Use your task manager. Does it show up there? If so, it's running.Originally posted by Commander
Hi, I was just wondering if there was a way to know if a certain program(a DOS window) is open or not. If there is, would you guys please tell me. It would be a big help!
thankx!
Quzah.
Hope is the first step on the road to disappointment.
OUCH
To me, Quzah answered your question perfectly.
Obivously ( or atleast I hope ), this is not what you were talking about.
When will people realize that you need to be specific about programming?
If you asked "god" to sum up how he created the earth in one or 2 sentances, he couldn't. This is the same concept.
The world is waiting. I must leave you now.
Sorry about that! I was kinda asking if there was a way to write a code that would determine if a certain program was open or not...Help anyone?
thnkx!
ugh, I don't know the Win API function that does this. sorry.
think only with code.
write only with source.
I do not know how to do this myself.I was kinda asking if there was a way to write a code that would determine if a certain program was open or not...Help anyone?
I haven't personally had the need for something like this.
It might be useful in the case of updating and old version of a program, for say an installation or something.
> Sorry about that!
Thank you for realizing you need to be clear.
The world is waiting. I must leave you now.
I'm not sure but once I made a program like spy++ (utility that gives you a graphical view of the system’s processes) using the GetTopWindow, GetNextWindow, FindWindow, etc functions. Maybe you can use these functions.
Cheers, Monster
Well Monster has a point.
But i think you need to implement interrupt vector routines in your program (Borland/Turbo C/C++).
All men are created equal. But some are more equal than others.
Visit me at http://www.angelfire.com/my/billholm
In a windows environment, EnumProcesses() would be a good start....but you need to be sure of the procedure and you need a decent version such as 2000 or XP..........
Yah that too!
All men are created equal. But some are more equal than others.
Visit me at http://www.angelfire.com/my/billholm
Does anyone have any examples of how to use those functions?
Obviously you can do this in any Windows, including Win 3.0 since the Program Manager lists the current running tasks.
Check the SDK. I'm sure there is an API call combined with callback function for this.
Sorry Commander, I can't present any code yet.
I still have to dig deeper into systems programming. Till then I can only surmise.
All men are created equal. But some are more equal than others.
Visit me at http://www.angelfire.com/my/billholm
i dont know how to answer the question you asked. I think i might be able to be a little more specific.
ok here I go.
This is the function i want to use.PHP Code:
BOOL GetClassInfo(
HINSTANCE hInstance,
LPCTSTR lpClassName,
LPWNDCLASS lpWndClass
);
What i want to do is use GetClassInfo();, inside a loop, to check the caption of all the windows.
Then when i find the window with what i'm looking for (i.e. " - WinProxy")
or when i don't find it... take action.
My Question is, how do i get the hInstance of all the different windows?
hope this helps Commander.
Please don't gravedig.
The world is waiting. I must leave you now.