using System; using System.Runtime.InteropServices; using Shell32; class Hello { static void Main(string[] args) { Shell shell = new Shell(); Folder folder; object vRootFolder = (long)ShellSpecialFolderConstants.ssfWINDOWS; folder = shell.BrowseForFolder(0, "Hello, COM(MSIL) World!", 0, vRootFolder); if (folder != null) { Marshal.ReleaseComObject(folder); } Marshal.ReleaseComObject(shell); } }