Skip to content

Instantly share code, notes, and snippets.

@rightfold
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rightfold/9c979dc9ff8deb98482e to your computer and use it in GitHub Desktop.
Save rightfold/9c979dc9ff8deb98482e to your computer and use it in GitHub Desktop.
public ISet<IntPtr> GetChildWindows(IntPtr parentHwnd) {
var result = new HashSet<IntPtr>();
EnumChildWindows(parentHwnd, (childHwnd, lParam) => {
result.Add(childHwnd);
return true;
}, IntPtr.Zero);
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment