public static IntPtr GetChildWindowHwnd(IntPtr parentHwnd, string className) { var hWnd = IntPtr.Zero; enumChildWindowClassName = className; // Go throught the child windows of the dialog window EnumChildWindowProc childWindowProc = EnumChildWindows; EnumChildWindows(parentHwnd, childWindowProc, ref hWnd); return(hWnd); }
internal static extern bool EnumChildWindows(IntPtr hWndParent, EnumChildWindowProc lpEnumFunc, IntPtr lParam);
public static extern bool EnumChildWindows(IntPtr hWndParent, EnumChildWindowProc lpEnumFunc, IntPtr lParam);
internal static extern Int32 EnumChildWindows(IntPtr hWndParent, EnumChildWindowProc lpEnumFunc, ref IntPtr lParam);
public static extern int EnumWindows(EnumChildWindowProc lpEnumFunc, IntPtr lParam);