Get handle in C++ code example Example: Get handle in C++ hwnd = FindWindow(NULL,(LPCWSTR)"NAMEOFWINDOW");