_GetWindowRect() private méthode

private _GetWindowRect ( IntPtr hWnd, RECT &lpRect ) : bool
hWnd IntPtr
lpRect RECT
Résultat bool
Exemple #1
0
        public static RECT GetWindowRect(IntPtr hwnd)
        {
            RECT result;

            if (!NativeMethods._GetWindowRect(hwnd, out result))
            {
                HRESULT.ThrowLastError();
            }
            return(result);
        }