My call for Indigo bloggers was very successful (although most recommendations came via email), providing several interesting Indigo web blog possibilities. On the WinFS side, I only know about Mike Deem, and he seems to have gone into hybernation. Does anyone have anyone else that they'd like to recommend as a WinFS blogger? Thanks!
In early 2000, Mike Woodring moved Heaven and Earth to write a tool that would inject a DLL into a process’s memory for purposes of finding the command line with which the process was launched. While hanging around Don and Tim this week, Don was all hot on WMI, so we fired it up in .NET and rebuilt Mike’s tool like so:
using System; using System.Management; class cmdline { staticvoidMain(string[] args) { if( args.Length != 1 ) { Console.WriteLine(“usage: cmdline <processId>“); return; }
ManagementObject obj = new ManagementObject(string.Format(“Win32_Process.Handle="{0}\“”, args[0])); Console.WriteLine(obj.Properties[“CommandLine”].Value); } }
This makes WMI pretty darn cool in my book. I’ll be reading Jon Fancey’s article on WMI + .NET in the latest MSDN Magazine.
BTW, I have to admit that I’m nowhere near as manly as Mike. I’ll take this sissy code any day. : )