I am developing a number of applications with Vis Studio 2005 (intended to run on the same box). One of the applications is a Menu GUI that manages other applications. It provides an easy one-touch way to launch applications that have been configured. In addition, I have a "task-bar" like pull-down that brings a process' window to the foreground when selected. Everything works great for third party apps.
Now for my problem - I have single window application that I developed to display an analog video input from a capture card. I would like to treat this app as I would any other app. When I launch this app, I grab a handle to the process (same as I do all other processes). The issue is that the MainWindowHandle of the process is always zero - even well after I see the video being displayed in the application that was launched (note, I don't access the handle until the pull-down click, meaning the handle isn't saved - I fetch it every time from the process).
Do I have to manually set the MainWindowHandle for the process? I cannot see how this can be accomplished in my VS C# application.
Thanks,
Mike
Start Free Trial