您的位置:首页 > 其它

如何调用 “WINDOWS 图片和传真查看器”

2006-02-09 14:38 483 查看
在WINDOWS XP中,“WINDOWS 图片和传真查看器”这个应该程序并没有一个真正存在的EXE文件,他是从一个DLL中调用而来的,具体调用方法如下:

我们需要用rundll32.exe这个程序来运行含有这个功能的DLL(shimgvw.dll),并附加参数ImageView_FullScreen.

CString strSystemDir;
::GetSystemDirectory(strSystemDir.GetBuffer(256), 256);
strSystemDir.ReleaseBuffer();

strPicFile = LongPathToShort(strPicFile);
strSystemDir = LongPathToShort(strSystemDir);

CString strRundll;
strRundll = strSystemDir + "//rundll32.exe";

CString strParm;
strParm.Format("%s//shimgvw.dll imageview_fullscreen %s", strSystemDir, strPicFile);

ShellExecute(NULL, "Open", strRundll, strParm, NULL, SW_SHOW);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: