Example #1
0
        /// <summary>
        /// Returns an array of all open windows and their hWnds
        /// </summary>
        public WindowArray()
        {
            GCHandle      gch  = GCHandle.Alloc(this);
            EnumWindowsCB ewcb = new EnumWindowsCB(MyEnumWindowsCB);

            EnumWindows(ewcb, (IntPtr)gch);
            gch.Free();
        }
Example #2
0
 public static extern bool EnumWindows(EnumWindowsCB callback, IntPtr lParam);
Example #3
0
 private static extern int EnumWindows(EnumWindowsCB cb,
                                       IntPtr param);
Example #4
0
 public static extern int EnumWindows(EnumWindowsCB cb, int lparam);
Example #5
0
 private static extern int EnumWindows(EnumWindowsCB cb,
     IntPtr param);
Example #6
0
 /// <summary>
 /// Returns an array of all open windows and their hWnds
 /// </summary>
 public WindowArray()
 {
     GCHandle gch = GCHandle.Alloc(this);
     EnumWindowsCB ewcb = new EnumWindowsCB(MyEnumWindowsCB);
     EnumWindows(ewcb, (IntPtr)gch);
     gch.Free();
 }