Hello everyone.

I am working on a game launcher, and I need to display a "Splash screen" until the main game has started. For this, I need to know whether or not the Process has a Main window that is fully loaded and displayed.

Now I noticed the main window handle is 0 when there is none, so I tried to use that:
Code:
        p.Start()
        Do While p.MainWindowHandle = IntPtr.Zero
            Threading.Thread.Sleep(100)
        Loop
        MsgBox("Game window displayed")
But the handle never becomes nonzero. I tried to use the title but to no avail.
I do not want to go into "Thread.wait()" since then the splash would remain even if the game is already launched.

Any help on this?