Widow – Diff between revs 1 and 11

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 1 Rev 11
Line 4... Line 4...
4   4  
5 namespace Widow 5 namespace Widow
6 { 6 {
7 public static class Natives 7 public static class Natives
-   8 {
-   9 #region Public Events & Delegates
-   10  
-   11 public delegate bool EnumWindowsProc(IntPtr hWnd, IntPtr lParam);
-   12  
-   13 #endregion
8 { 14  
Line 9... Line 15...
9 #region Public Enums, Properties and Fields 15 #region Public Enums, Properties and Fields
10   16  
11 /// <summary> 17 /// <summary>
Line 1508... Line 1514...
1508 #endregion 1514 #endregion
Line 1509... Line 1515...
1509   1515  
Line 1510... Line 1516...
1510 #region Public Methods 1516 #region Public Methods
-   1517  
-   1518 [DllImport("user32.dll")]
-   1519 public static extern bool EnumWindows(EnumWindowsProc enumProc, IntPtr lParam);
1511   1520  
1512 [DllImport("user32.dll")] 1521 [DllImport("user32.dll")]
Line 1513... Line 1522...
1513 [return: MarshalAs(UnmanagedType.Bool)] 1522 [return: MarshalAs(UnmanagedType.Bool)]
1514 public static extern bool GetWindowRect(IntPtr hWnd, out RECT lpRect); 1523 public static extern bool GetWindowRect(IntPtr hWnd, out RECT lpRect);
Line 1528... Line 1537...
1528 #endregion 1537 #endregion
Line 1529... Line 1538...
1529   1538  
Line 1530... Line 1539...
1530 #region Private Methods 1539 #region Private Methods
-   1540  
-   1541 [DllImport("user32.dll", SetLastError = true)]
-   1542 public static extern uint GetWindowThreadProcessId(IntPtr hWnd, out uint processId);
1531   1543  
Line 1532... Line 1544...
1532 [DllImport("user32.dll", SetLastError = true)] 1544 [DllImport("user32.dll", SetLastError = true)]
1533 internal static extern bool MoveWindow(IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint); 1545 public static extern bool MoveWindow(IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint);
Line 1534... Line 1546...
1534   1546  
Line 1535... Line 1547...
1535 [DllImport("user32.dll", SetLastError = true)] 1547 [DllImport("user32.dll", SetLastError = true)]