예제 #1
0
파일: Lookup.cs 프로젝트: zerkms/shary
        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;
        }
예제 #2
0
파일: Lookup.cs 프로젝트: zerkms/shary
        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);
        }