#include <windows.h>

int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
 int nCmdShow)
{
 HWND ie = FindWindowEx(NULL, NULL, "IEFrame", NULL);
 HWND wrk, tb, cbx, cb, url;

 if (ie == NULL) {
  MessageBox(NULL, "Please open Internet Explorer for this test,"
   "or I'm going to open one in the next release of this POC"
   ";-)", "Hi!", MB_OK | MB_ICONEXCLAMATION);

  return 0;
 }

 wrk = FindWindowEx(ie,  NULL, "WorkerW", NULL);
 tb  = FindWindowEx(wrk, NULL, "ReBarWindow32", NULL);
 cbx = FindWindowEx(tb,  NULL, "ComboBoxEx32", NULL);
 cb  = FindWindowEx(cbx, NULL, "ComboBox", NULL);
 url = FindWindowEx(cb,  NULL, "Edit", NULL);

 SendMessage(url, WM_SETTEXT, NULL, "http://www.dingens.org/breakout.html.en");
 PostMessage(url, WM_SETFOCUS, 0, 0);
 PostMessage(url, WM_KEYDOWN, VK_RETURN, 0);
 return 0;
}
