关于msdn中CreateProcess函数说明的注释
来源:互联网 发布:淘宝订单待配货 编辑:程序博客网 时间:2024/05/17 04:32
msdn中CreateProcess函数关于lpApplicationName参数的说明里面有这么一段话
The string can specify the full path and file name of the module to execute or it can specify a partial name. In the case of a partial name, the function uses the current drive and current directory to complete the specification. The function will not use the search path. If the file name does not contain an extension, .exe is assumed. Therefore, if the file name extension is .com, this parameter must include the .com extension. [1]
但是实际测试表明并不会有默认的.exe的扩展名的
[1]ms-help://MS.MSDNQTR.v90.en/dllproc/base/createprocess.htm
[2]测试环境:windows xp sp2 + vs2008 sp1
The string can specify the full path and file name of the module to execute or it can specify a partial name. In the case of a partial name, the function uses the current drive and current directory to complete the specification. The function will not use the search path. If the file name does not contain an extension, .exe is assumed. Therefore, if the file name extension is .com, this parameter must include the .com extension. [1]
但是实际测试表明并不会有默认的.exe的扩展名的
#include <windows.h>int main(){STARTUPINFO si = { 0 };si.cb = sizeof(STARTUPINFO);PROCESS_INFORMATION pi = { 0 };CreateProcess(L"D:\\a.exe",NULL,NULL,NULL,FALSE,0,NULL,NULL,&si,&pi);// 成功//CreateProcess(L"D:\\a",NULL,NULL,NULL,FALSE,0,NULL,NULL,&si,&pi);// 不成功CloseHandle(pi.hProcess);return 0;}
[1]ms-help://MS.MSDNQTR.v90.en/dllproc/base/createprocess.htm
[2]测试环境:windows xp sp2 + vs2008 sp1
- 关于msdn中CreateProcess函数说明的注释
- MSDN中关于CString类成员函数的说明
- 关于msdn中NtQuerySystemInformation函数说明
- 关于msdn中NtQuerySystemInformation函数说明
- MSDN中memset函数说明的翻译
- createprocess函数的参数说明:
- msdn中关于TimeSetEvent回调函数的说明
- stl(三)------这是一个MSDN中的一个关于map 中find函数的说明 很好的一个例子
- 关于rename函数,库头文件说明和MSDN说明不一致的问题。
- MSDN中关于SetWindowLongPtr和GetWindowLongPtr函数的描述错误
- Windows中CreateProcess()函数的使用说明
- 关于Junit注释的说明
- MSDN中关于Membership的SqlProvider属性说明的一个BUG
- 关于CreateProcess的疑惑
- 关于CreateProcess的使用
- 关于CreateProcess的问题
- 关于CreateProcess的使用
- 关于C++中构造函数的说明
- Java基本数据类型
- Spring MVC试用
- 除非指定了 DeleteCommand,否则数据源“SqlDataSource2”不支持删除操作。
- ubuntu启动停在Checking battery state
- OpenGL织梦之旅【第二章】编写一个的钟表程序
- 关于msdn中CreateProcess函数说明的注释
- C#中生成快捷方式
- LinuxC/C++编程基础(1) 函数指针实现复数的加减乘除
- sendmail 发送邮件例子
- IOS项目为什么加入静态数据库需要加入-ObjC and -all-load in Other Linker Flag
- GDB调试精粹及使用实例
- 将内容里的html标签去掉的类
- 理解OpenGL拾取模式(OpenGL Picking)
- sql server游标的Cursor for后面使用变量