// 打开一个目录 或者 网站<br> ShellExecute(NULL, _T("open"), _T("e://技术文章//VC++"), NULL,NULL, SW_SHOW);<br> ShellExecute(NULL, _T("open"), _T("www.china.com"), NULL,NULL, SW_SHOW);<br> ShellExecute(NULL,"open","iloveu.bmp",NULL,NULL,SW_SHOWNORMAL);<br> ShellExecute(NULL,"open","mailto:wukw@263.net.cn",NULL,NULL,SW_SHOWNORMAL); <br> ShellExecute(NULL,"print","e://1.txt",NULL,NULL,SW_HIDE ); <br> ShellExecute(NULL,"print","e://1.bmp",NULL,NULL,SW_SHOW ); <br> ShellExecute(NULL,"print","e://1.chm",NULL,NULL,SW_SHOW ); <br>// 你可以给它任何文件的名字,它都能识别出来并打开它。甚至是桌面和URL快捷方式(.ink或 .url)。还能打开Internet的站点地址。ShellExecute还能识别其它协议,象FTP、GOPHER。<br>// 如果将第二个参数“OPEN”改为“PRINT”或者“EXPLORE”,ShellExecute将能打印文件和打开文件夹。ShellExecute还有一个扩展函数ShellExecuteEx,所带参数中有一个特殊的结构,功能更强,它的用法参见有关文档。<br>// ShellExecute 返回打开文件的应用的实例句柄。<br>