예제 #1
0
        internal static InteropValues.WINDOWPLACEMENT GetWindowPlacement(IntPtr hwnd)
        {
            InteropValues.WINDOWPLACEMENT wINDOWPLACEMENT = new InteropValues.WINDOWPLACEMENT();

            if (GetWindowPlacement(hwnd, wINDOWPLACEMENT))
            {
                return(wINDOWPLACEMENT);
            }
            throw new Win32Exception(Marshal.GetLastWin32Error());
        }
예제 #2
0
 private static extern bool GetWindowPlacement(IntPtr hwnd, InteropValues.WINDOWPLACEMENT lpwndpl);