Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

C# COM

By: a guest on Apr 15th, 2010  |  syntax: C#  |  size: 0.24 KB  |  views: 111  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.             dynamic shell = System.Runtime.InteropServices.Marshal.GetActiveObject("Shell.Application");
  2.             dynamic windows = shell.Windows();
  3.             for (int i = 0; i < windows.Count; i++)
  4.                 windows.Item(i).Refresh();