Beispiel #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();
        }
Beispiel #2
0
 public static extern bool EnumWindows(EnumWindowsCB callback, IntPtr lParam);
Beispiel #3
0
 private static extern int EnumWindows(EnumWindowsCB cb,
                                       IntPtr param);
Beispiel #4
0
 public static extern int EnumWindows(EnumWindowsCB cb, int lparam);
Beispiel #5
0
 private static extern int EnumWindows(EnumWindowsCB cb,
     IntPtr param);
Beispiel #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();
 }