QString str("IPTip_Main_Window"); LPCWSTR lstr = reinterpret_cast<LPCWSTR>(str.constData()); HWND handle = FindWindow(lstr, NULL); if (handle > 0) { PostMessage(handle, WM_SYSCOMMAND, SC_CLOSE, 0); }