Example #1
0
 public bool ClientToScreenInPlace(ref User32Point point)
 {
     unsafe
     {
         fixed(User32Point *lpPoint = &point)
         {
             return(User32APIs.ClientToScreen(Hwnd, lpPoint));
         }
     }
 }
Example #2
0
        public bool ClientToScreenInPlace(ref User32Rect rect)
        {
            unsafe
            {
                fixed(User32Rect *lpRect = &rect)
                {
                    User32Point *lpPoint = (User32Point *)lpRect;

                    if (!User32APIs.ClientToScreen(Hwnd, lpPoint))
                    {
                        return(false);
                    }
                    return(User32APIs.ClientToScreen(Hwnd, lpPoint + 1));
                }
            }
        }