5 int main(int argc, char *argv[]) {
6 if (argc != 3 && argc != 5) {
7 printf("Usage: %s x y\n", argv[0]);
8 printf("Usage: %s x y width height\n", argv[0]);
12 HWND hwnd = GetConsoleWindow();
14 const int x = atoi(argv[1]);
15 const int y = atoi(argv[2]);
20 BOOL ret = GetWindowRect(hwnd, &r);
21 ASSERT(ret && "GetWindowRect failed on console window");
29 BOOL ret = MoveWindow(hwnd, x, y, w, h, TRUE);
30 trace("MoveWindow: ret=%d", ret);
31 printf("MoveWindow: ret=%d\n", ret);