Widow – Diff between revs 14 and 18

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 14 Rev 18
Line 1... Line 1...
1 using System; 1 using System;
-   2 using System.Drawing;
2 using System.Runtime.InteropServices; 3 using System.Runtime.InteropServices;
3 using System.Text; 4 using System.Text;
Line 4... Line 5...
4   5  
5 namespace Widow 6 namespace Widow
6 { 7 {
7 public static class Natives 8 public static class Natives
8 { -  
9 [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)] -  
10 public static extern int GetClassName(IntPtr hWnd, StringBuilder lpClassName, int nMaxCount); -  
11   9 {
Line 12... Line 10...
12 #region Public Events & Delegates 10 #region Public Events & Delegates
Line 13... Line 11...
13   11  
Line 14... Line 12...
14 public delegate bool EnumWindowsProc(IntPtr hWnd, IntPtr lParam); 12 public delegate bool EnumWindowsProc(IntPtr hWnd, IntPtr lParam);
Line -... Line 13...
-   13  
-   14 #endregion
-   15  
-   16 #region Public Enums, Properties and Fields
-   17  
-   18 public enum OCR_SYSTEM_CURSORS : uint
-   19 {
-   20 /// <summary>
-   21 /// Standard arrow and small hourglass
-   22 /// </summary>
-   23 OCR_APPSTARTING = 32650,
-   24  
-   25 /// <summary>
-   26 /// Standard arrow
-   27 /// </summary>
-   28 OCR_NORMAL = 32512,
-   29  
-   30 /// <summary>
-   31 /// Crosshair
-   32 /// </summary>
-   33 OCR_CROSS = 32515,
-   34  
-   35 /// <summary>
-   36 /// Windows 2000/XP: Hand
-   37 /// </summary>
-   38 OCR_HAND = 32649,
-   39  
-   40 /// <summary>
-   41 /// Arrow and question mark
-   42 /// </summary>
-   43 OCR_HELP = 32651,
-   44  
-   45 /// <summary>
-   46 /// I-beam
-   47 /// </summary>
-   48 OCR_IBEAM = 32513,
-   49  
-   50 /// <summary>
-   51 /// Slashed circle
-   52 /// </summary>
-   53 OCR_NO = 32648,
-   54  
-   55 /// <summary>
-   56 /// Four-pointed arrow pointing north, south, east, and west
-   57 /// </summary>
-   58 OCR_SIZEALL = 32646,
-   59  
-   60 /// <summary>
-   61 /// Double-pointed arrow pointing northeast and southwest
-   62 /// </summary>
-   63 OCR_SIZENESW = 32643,
-   64  
-   65 /// <summary>
-   66 /// Double-pointed arrow pointing north and south
-   67 /// </summary>
-   68 OCR_SIZENS = 32645,
-   69  
-   70 /// <summary>
-   71 /// Double-pointed arrow pointing northwest and southeast
-   72 /// </summary>
-   73 OCR_SIZENWSE = 32642,
-   74  
-   75 /// <summary>
-   76 /// Double-pointed arrow pointing west and east
-   77 /// </summary>
-   78 OCR_SIZEWE = 32644,
-   79  
-   80 /// <summary>
-   81 /// Vertical arrow
-   82 /// </summary>
-   83 OCR_UP = 32516,
-   84  
-   85 /// <summary>
15   86 /// Hourglass
16 #endregion 87 /// </summary>
17   88 OCR_WAIT = 32514
18 #region Public Enums, Properties and Fields 89 }
19   90  
Line 1517... Line 1588...
1517 #endregion 1588 #endregion
Line 1518... Line 1589...
1518   1589  
Line 1519... Line 1590...
1519 #region Public Methods 1590 #region Public Methods
-   1591  
-   1592 [DllImport("user32.dll")]
-   1593 public static extern IntPtr WindowFromPoint(Point p);
-   1594  
-   1595 [DllImport("user32.dll")]
-   1596 public static extern IntPtr GetForegroundWindow();
-   1597  
-   1598 [DllImport("user32.dll", CharSet = CharSet.Auto)]
-   1599 public static extern int SystemParametersInfo(uint uiAction,
-   1600 uint uiParam, string pvParam, uint fWinIni);
-   1601  
-   1602  
-   1603 [DllImport("user32.dll")]
-   1604 public static extern bool SetSystemCursor(IntPtr hcur, uint id);
-   1605  
-   1606 [DllImport("user32.dll")]
-   1607 public static extern IntPtr LoadCursor(IntPtr hInstance, int lpCursorName);
-   1608  
-   1609 [DllImport("user32.dll")]
-   1610 public static extern IntPtr CopyIcon(IntPtr pcur);
-   1611  
-   1612 [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
-   1613 public static extern int GetClassName(IntPtr hWnd, StringBuilder lpClassName, int nMaxCount);
1520   1614  
Line 1521... Line 1615...
1521 [DllImport("user32.dll")] 1615 [DllImport("user32.dll")]
1522 public static extern bool EnumWindows(EnumWindowsProc enumProc, IntPtr lParam); 1616 public static extern bool EnumWindows(EnumWindowsProc enumProc, IntPtr lParam);
1523   1617