As far as I understand it, you want FindWindow;
Retrieves a handle to the top-level window whose class name and window name match the specified strings.
...
If lpClassName is NULL, it finds any window whose title matches the lpWindowName parameter.