I want to get the position of the current window (its a console window). By current I mean the window I'm programming in, for example if the console is in the top left of the screen I should get X = 0, Y = 0. (By the position of the window I mean the top left of the window respective of the monitor)
#include <windows.h>
#include <iostream>
using namespace std;
int main(){
int X, Y;
GetCurrentWindowPos(&X, &Y); /* How do I do this? */
return 0;
}