private extern static int EnumWindows(EnumWindowsProc lpEnumFunc, int lParam); [DllImport("user32", CharSet = CharSet.Auto)]