Type shellType = Type.GetTypeFromProgID("Shell.Application");
object objShell = System.Activator.CreateInstance(shellType);
//shellType.InvokeMember("Visible", BindingFlags.SetProperty, null, objShell, new Object[] { true });
object objShellWindows = objShell.GetType().InvokeMember("windows", BindingFlags.InvokeMethod, null, objShell, null);
//objShell = Interaction.CreateObject("Shell.Application");
//objShellWindows = objShell.Windows;
object[] oPar = {(uint)1};
object wcount = objShellWindows.GetType().InvokeMember("count", BindingFlags.GetProperty, null, objShellWindows, null);
MessageBox.Show(wcount.ToString());
Object oIE = objShellWindows.GetType().InvokeMember("Item", BindingFlags.InvokeMethod, null, objShellWindows, new object[]{1});
报什么错啊