示例#1
0
        private static void CalcScreenRes()
        {
            var   ptrToDesk = ExternalFunctions.GetDesktopWindow();
            _RECT r         = new _RECT();

            ExternalFunctions.GetWindowRect(ptrToDesk, out r);
            ScreenWidth  = r.right / 1.5;
            ScreenHeight = r.bottom / 2;

            Encoding.Unicode.GetBytes("hello");
        }
示例#2
0
 public static extern bool GetWindowRect(IntPtr hWnd, out _RECT lpRect);