eblattner
Programmer
- Aug 10, 2000
- 33
This has to be a stupid question, and I know there is an easy way to do it, but I don't know what it is! I am launching an app in code, and need to get the apps handle. I have tries CreateProcess, and ShellExecute, but the only way I have been able to get the handle is by using GetForgroundWindow right after when it launches. The problem with this is some apps have a splash screen that messes the whole thing up. Any help would be great, THANKS in advance!