public List <WndInfo> GetAllQQWechatWnd() { _qqWechatList.Clear(); EnumWindowsCallBack myCallBack = new EnumWindowsCallBack(EnumWindowsAndGetContent); Win32.EnumWindows(myCallBack, 0); return(_qqWechatList); }
public static extern bool EnumChildWindows(HandleRef hWndParent, EnumWindowsCallBack lpEnumFunc, int lParam);
public static extern bool EnumWindows(EnumWindowsCallBack lpEnumFunc, int lParam);
static extern int EnumWindows(EnumWindowsCallBack lpEnumFunc, IntPtr lParam);
public static extern IntPtr EnumWindows( EnumWindowsCallBack enumCallback, int lParam );
public static extern int EnumWindows(EnumWindowsCallBack x, int y);
internal static extern bool EnumWindows(EnumWindowsCallBack lpfn, IntPtr lParam);
internal static extern bool EnumChildWindows(IntPtr windowHandleParent, EnumWindowsCallBack lpEnumFunc, IntPtr lParam);
internal static extern bool EnumDesktopWindows(IntPtr hDesktop, EnumWindowsCallBack lpfn, IntPtr lParam);
public static extern bool EnumChildWindows(IntPtr hwndParent, EnumWindowsCallBack lpEnumFunc, IntPtr lParam);
public static extern int EnumWindows(EnumWindowsCallBack enumProc, IntPtr lParam);
public static extern int EnumChildWindows( IntPtr hWndParent, EnumWindowsCallBack enumCallback, int lParam );
private static extern int EnumWindows(EnumWindowsCallBack lpFunc, int lParam);
public static extern bool EnumWindows(EnumWindowsCallBack callback, int lParam);
/** * <summary> * Enumerates all top-level windows on the screen by passing the handle to each window, in turn, to an application-defined callback function. * </summary> * <param name="lpEnumFunc">A pointer to an application-defined callback function.</param> * <param name="lParam">An application-defined value to be passed to the callback function.</param> * <returns>If the function succeeds, the return value is nonzero.</returns> */ /** \remark Is imported from external library: user32 */ private extern int EnumWindows(EnumWindowsCallBack lpEnumFunc, int lParam);