RECT orbiterResolution;
// handle to Orbiter, found by some function
const HWND hOrbiterWindow;
GetWindowRect(hOrbiterWindow, &orbiterResolution);
// The top left corner will have coordinates (0,0)
// and the bottom right corner will have coordinates
// (horizontal, vertical)
int horizontal = desktop.right;
int vertical = desktop.bottom;