Use the FindWindowEx API function.