public List <IntPtr> EnumWindows_Renamed() { var handleList = new List <IntPtr>(); HandleLists.Add(handleList); var handleIndex = (IntPtr)HandleLists.IndexOf(handleList); NativeMethods.EnumWindows(EnumCallback, handleIndex); HandleLists.Remove(handleList); return(handleList); }
public List <IntPtr> EnumChildWindows(IntPtr hWndParent) { List <IntPtr> handleList = new List <IntPtr>(); HandleLists.Add(handleList); int handleIndex = HandleLists.IndexOf(handleList); Win32.EnumChildWindows(hWndParent, EnumCallback, handleIndex); HandleLists.Remove(handleList); return(handleList); }
public List <IntPtr> EnumChildWindows(IntPtr hWndParent) { var handleList = new List <IntPtr>(); HandleLists.Add(handleList); var handleIndex = (IntPtr)HandleLists.IndexOf(handleList); NativeMethods.EnumChildWindows(hWndParent, EnumCallback, handleIndex); HandleLists.Remove(handleList); return(handleList); }
public List <IntPtr> EnumWindows_Renamed() { List <IntPtr> handleList = new List <IntPtr>(); HandleLists.Add(handleList); int handleIndex = HandleLists.IndexOf(handleList); Win32.EnumWindows(EnumCallback, handleIndex); HandleLists.Remove(handleList); return(handleList); }