Esempio n. 1
0
        ///

        /// Gets all child windows of the specified window
        ///
        /// Window Handle to get children for
        public void GetWindows(
            IntPtr hWndParent)
        {
            this.items = new EnumWindowsCollection();
            UnManagedMethods.EnumChildWindows(
                hWndParent,
                new EnumWindowsProc(this.WindowEnum),
                0);
        }
Esempio n. 2
0
        ///

        /// Gets all top level windows on the system.
        ///
        public void GetWindows()
        {
            this.items = new EnumWindowsCollection();
            var test = new EnumWindowsProc(this.WindowEnum);

            UnManagedMethods.EnumWindows(test
                                         ,
                                         0);
        }