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; }
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); }