文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > ShellExecute的用法
侵权投诉

ShellExecute的用法

ShellExecute的用法

if(CreateProcess("c:\\winnt\\notepad.exe", NULL, NULL,NULL,FALSE,0,NULL,

NULL,&StartupInfo,&ProcessInfo))

{

WaitForSingleObject(ProcessInfo.hProcess,INFINITE); CloseHandle(ProcessInfo.hThread);

CloseHandle(ProcessInfo.hProcess);

}

else

{

MessageBox("The process could not be started..."); }

Q: 如何显示文件或文件夹的属性?

SHELLEXECUTEINFO ShExecInfo ={0};

ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO); ShExecInfo.fMask = SEE_MASK_INVOKEIDLIST ; ShExecInfo.hwnd = NULL;

ShExecInfo.lpVerb = "properties";

ShExecInfo.lpFile = "c:\\"; //can be a file as well ShExecInfo.lpParameters = "";

ShExecInfo.lpDirectory = NULL;

ShExecInfo.nShow = SW_SHOW;

ShExecInfo.hInstApp = NULL;

ShellExecuteEx(&ShExecInfo);

上一页第5页

你可能喜欢

热门文档

相关文档

  • shell和ShellExecute的用法

    shell和ShellExecute的用法_IT/计算机_专业资料。把我自己总结的shell和ShellExecute的用法分享一下: shell 函数只可以执行.exe .com .bat 的可执行文件。 ...

  • ShellExecute使用方法

    ShellExecute使用方法_IT/计算机_专业资料。ShellExecute 使用方法 ShellExecute 能打开东西很多,打开外部程序、网页、文件夹、EMAIL、我的文档、我的电 脑、回收站...

  • ShellExecute函数用法

    2.函数原型: HINSTANCE ShellExecute(HWND hwnd, LPCTSTR lpOperation, LPCTSTR lpFile, LPCTSTR lpParameters, LPCTSTR lpDirectory, INT nShowCmd); 3.参数说明: hwnd...

  • ShellExecute函数的用法

    ShellExecute 函数的用法 ShellExecute 的功能是运行一个外部程序(或者是打开一个已注册的 文件、打开一个目录、打印一个文件等等) ,并对外部程序有一定的控制。 ...

  • ShellExecute与ShellExecuteEx的用法 c++

    ShellExecute与ShellExecuteEx的用法 c++_IT/计算机_专业资料。介绍在C++里如何利用这两个函数在程序里轻松打开文件、文件夹、运行程序、打开网页等操作。这两个...

  • MFC ShellExecute用法

    MFC ShellExecute用法_IT/计算机_专业资料。介绍函数ShellExecute的用法MFC ShellExecute 用法概述 对指定的文件执行一个操作。常用来打开外部程序。 语法 HINSTANCE ...

  • API函数ShellExecute的使用

    API函数ShellExecute的使用_IT/计算机_专业资料。API函数应用说明... ShellExecute函数的用法 3页 免费 使用API函数-- 2页 免费 在VB中使用API...

  • ShellExecute

    ShellExecute_计算机软件及应用_IT/计算机_专业资料。delphi ShellExecute的应用Delphi ShellExecute 的用法 2011-04-12 13:54:19 分类: Delphi 标签: 字号...

  • ShellExecute

    delphi中ShellExecute使用... 2页 免费 ShellExecute函数的用法 3页 免费 shell和ShellExecute的用法... 2页 2财富值喜欢此文档的还喜欢 ShellExecute函数用法 ...

  • ShellExecute

    delphi中ShellExecute使... 2页 免费 ShellExecute函数的用法 3页 免费 MFC ShellExecute用法 4页 免费 ShellExecute 1页 免费 ShellExecute 3页 免费 Shell...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email