text: /* 
   * Copyright (c) 2013 Jens Schmer
   * This file is distributed under the MIT License.
   * Consult COPYING within this package for further information. 
   */
  #pragma once
  
  #include "wtypes.h"
  
  // Get the horizontal and vertical screen sizes in pixel
  void GetDesktopResolution(unsigned int& horizontal, unsigned int& vertical)
  {
     RECT desktop;
     // Get a handle to the desktop window
     const HWND hDesktop = GetDesktopWindow();
     // Get the size of screen to the variable desktop
     GetWindowRect(hDesktop, &desktop);
     // The top left corner will have coordinates (0,0)
     // and the bottom right corner will have coordinates
     // (horizontal, vertical)
     horizontal = desktop.right;
     vertical = desktop.bottom;
  }
  