Example #1
0
        public WindowsCollection Find()
        {
            _windows = new WindowsCollection();

            var enumfunc = new Winapi.EnumDelegate(EnumWindowsProc);
            IntPtr hDesktop = IntPtr.Zero; // current desktop
            bool success = Winapi._EnumDesktopWindows(hDesktop, enumfunc, IntPtr.Zero);

            return _windows;
        }
Example #2
0
        public WindowsCollection Find()
        {
            _windows = new WindowsCollection();

            var    enumfunc = new Winapi.EnumDelegate(EnumWindowsProc);
            IntPtr hDesktop = IntPtr.Zero; // current desktop
            bool   success  = Winapi._EnumDesktopWindows(hDesktop, enumfunc, IntPtr.Zero);

            return(_windows);
        }