示例#1
0
文件: User32.cs 项目: Fulborg/A-Bot
        public static IEnumerable <IntPtr> ListeChildWindowHandle(IntPtr parentWindowHandle)
        {
            ListeIntPtr listeWindowHandle = new ListeIntPtr();
            bool        flag = EnumChildWindows(parentWindowHandle, User32.EnumWindowsCallback, ref listeWindowHandle);

            return(listeWindowHandle.Liste);
        }
示例#2
0
文件: User32.cs 项目: Fulborg/A-Bot
        public static IEnumerable <IntPtr> ListeWindowTopLevelHandle()
        {
            ListeIntPtr listeWindowHandle = new ListeIntPtr();
            bool        flag = EnumWindows(User32.EnumWindowsCallback, ref listeWindowHandle);

            return(listeWindowHandle.Liste);
        }
示例#3
0
文件: User32.cs 项目: Fulborg/A-Bot
 public static extern bool EnumChildWindows(IntPtr parentHandle, EnumWindowsProc callback, ref ListeIntPtr listeWindowHandle);
示例#4
0
文件: User32.cs 项目: Fulborg/A-Bot
 public static extern bool EnumWindows(EnumWindowsProc callback, ref ListeIntPtr listeWindowHandle);
示例#5
0
文件: User32.cs 项目: Fulborg/A-Bot
 private static bool EnumWindowsCallback(IntPtr hWnd, ref ListeIntPtr listeWindowHandle)
 {
     listeWindowHandle.Liste.Add(hWnd);
     return(true);
 }