public static List <window> GetOpenWindows() { openwnd = new List <window>(); winapi.EnumWindowsProc callback = new winapi.EnumWindowsProc(EnumWindows); winapi.EnumWindows(callback, 0); List <window> result = new List <window>(openwnd); openwnd.Clear(); result.RemoveAt(result.Count - 1); return(result); }
public static List<window> GetOpenWindows() { openwnd = new List<window>(); winapi.EnumWindowsProc callback = new winapi.EnumWindowsProc(EnumWindows); winapi.EnumWindows(callback, 0); List<window> result = new List<window>(openwnd); openwnd.Clear(); result.RemoveAt(result.Count - 1); return result; }
private void getwindows() { winapi.EnumWindowsProc callback = new winapi.EnumWindowsProc(enumwindows); winapi.EnumWindows(callback, 0); }