private static bool _EnumWindows() { lWindows = new List <IntPtr>(); Imports.EnumWindowsProc callback = new Imports.EnumWindowsProc(EnumWindowsCallback); return(Imports.EnumWindows(callback, IntPtr.Zero)); }