From within my applications I need to check if another application is loaded.
I tried the enum EnumWindows() API and the FindWindow API.
I set up a chronometer within the code and the results I got are that FindWindow takes 64ms to complete and EnumWindows() takes 0 ms to complete. How can this be. Is FindWindow so bad?
Is EnumWindows run in a seperate thread or something?
In that case, how do I stop my application to wait for that thread to finish. I need to wait for it since my code depends on the results of this thread.
BTW, my PC is an AMD 2100XP, if performance is an issue.
Thanks.
I tried the enum EnumWindows() API and the FindWindow API.
I set up a chronometer within the code and the results I got are that FindWindow takes 64ms to complete and EnumWindows() takes 0 ms to complete. How can this be. Is FindWindow so bad?
Is EnumWindows run in a seperate thread or something?
In that case, how do I stop my application to wait for that thread to finish. I need to wait for it since my code depends on the results of this thread.
BTW, my PC is an AMD 2100XP, if performance is an issue.
Thanks.