#includeIn this code example, we use the GetPosition module to retrieve the window position of a particular window within a graphical user interface. We first use the FindWindow function to retrieve the window handle of the window we are interested in. Then, we pass this handle to the GetWindowRect function which retrieves the position and size of the window and stores it in a RECT structure. We then print out the x and y positions of the window. Package Library: The package library used in this code example is windows.h, which is a header file provided by the Microsoft Windows operating system. It contains functions for working with Windows APIs, including window positioning and manipulation.#include // package library using namespace std; int main() { HWND hWnd = FindWindow(NULL, "Window Title"); // Find window handle RECT rect; if (GetWindowRect(hWnd, &rect)) // Get window position { cout << "Window position: " << rect.left << "," << rect.top << endl; } return 0; }