Ejemplo n.º 1
0
        public static IEnumerable <IntPtr> ListeChildWindowHandle(IntPtr parentWindowHandle)
        {
            ListeIntPtr listeWindowHandle = new ListeIntPtr();
            bool        flag = EnumChildWindows(parentWindowHandle, User32.EnumWindowsCallback, ref listeWindowHandle);

            return(listeWindowHandle.Liste);
        }
Ejemplo n.º 2
0
        public static IEnumerable <IntPtr> ListeWindowTopLevelHandle()
        {
            ListeIntPtr listeWindowHandle = new ListeIntPtr();
            bool        flag = EnumWindows(User32.EnumWindowsCallback, ref listeWindowHandle);

            return(listeWindowHandle.Liste);
        }
Ejemplo n.º 3
0
 public static extern bool EnumChildWindows(IntPtr parentHandle, EnumWindowsProc callback, ref ListeIntPtr listeWindowHandle);
Ejemplo n.º 4
0
 public static extern bool EnumWindows(EnumWindowsProc callback, ref ListeIntPtr listeWindowHandle);
Ejemplo n.º 5
0
 private static bool EnumWindowsCallback(IntPtr hWnd, ref ListeIntPtr listeWindowHandle)
 {
     listeWindowHandle.Liste.Add(hWnd);
     return(true);
 }