You can use shellexecuteex to get the process handle, and then the pid, and then enumerate windows until you find yours.
Code:
SHELLEXECUTEINFO eI = { 0 };
DWORD pIdExec = 0, pTId = 0;
HWND hWnd;
eI.cbSize = sizeof(eI);
eI.lpVerb = "open";
eI.lpFile = "iexplore";
eI.nShow = SW_SHOW;
eI.fMask = SEE_MASK_NOCLOSEPROCESS;
if(ShellExecuteEx(&eI) != FALSE)
{
WaitForInputIdle(eI.hProcess, 5000);
hWnd = FindWindow(NULL, 0);
while(hWnd != NULL)
{
GetWindowThreadProcessId(hWnd, &pTId);
pIdExec = GetProcessId(eI.hProcess);
if(pTId == pIdExec)
{
// yrs
}
hWnd = GetWindow(hWnd, GW_HWNDNEXT);
}
}