调用windows文件属性对话框
2007-03-19 13:10
295 查看
SHELLEXECUTEINFO att;
ZeroMemory(&att,sizeof(att));
att.cbSize = sizeof(SHELLEXECUTEINFO);
att.lpFile = _T( "c:\\ex.xls");//要显示属性的文件
att.lpVerb = _T("properties");
att.fMask = SEE_MASK_INVOKEIDLIST ;
ShellExecuteEx(&att);
ZeroMemory宏用0来填充一块内存区域。
为了避免优化编译器的意外的影响,请使用SecureZeroMemory函数。
void ZeroMemory(
PVOID Destination,
SIZE_T Length
);
Parameters
参数:
Destination
[in] Pointer to the starting address of the block of memory to fill with zeros.
指向一块准备用0来填充的内存区域的开始地址。
Length
[in] Size of the block of memory to fill with zeros, in bytes.
准备用0来填充的内存区域的大小,按字节来计算。
This function has no return value.
这个函数没有返回值。
ZeroMemory(&att,sizeof(att));
att.cbSize = sizeof(SHELLEXECUTEINFO);
att.lpFile = _T( "c:\\ex.xls");//要显示属性的文件
att.lpVerb = _T("properties");
att.fMask = SEE_MASK_INVOKEIDLIST ;
ShellExecuteEx(&att);
ZeroMemory宏用0来填充一块内存区域。
为了避免优化编译器的意外的影响,请使用SecureZeroMemory函数。
void ZeroMemory(
PVOID Destination,
SIZE_T Length
);
Parameters
参数:
Destination
[in] Pointer to the starting address of the block of memory to fill with zeros.
指向一块准备用0来填充的内存区域的开始地址。
Length
[in] Size of the block of memory to fill with zeros, in bytes.
准备用0来填充的内存区域的大小,按字节来计算。
This function has no return value.
这个函数没有返回值。
相关文章推荐
- MFC调用windows的时间和日期属性对话框
- windows下C语言调用系统文件选择对话框
- 调用文件“属性”对话框
- 通过API调用文件的属性对话框
- 调用windows api SHMultiFileProperties 显示多文件的汇总属性
- VBS脚本代码(手工编写---在windows 7上调用系统对话框,来选择文件)
- VB6.0 在代码中直接调用 文件打开对话框,不使用windows控件
- windows文件属性操作 dsofile
- 打开和保存文件对话框 调用动态库
- 调用系统对话框复制文件
- windows driver 获取文件属性
- 调用API弹出打印机属性对话框
- 小白Windows下编译使用Android NDK,调用SO文件
- 调用API弹出打印机属性对话框
- 在AndroidManifest.xml文件中的android:windowSoftInputMode属性使用
- Windows编程基础--第14节 MFC之文件对话框CFileDialog
- 清除SVN属性文件(.svn)的windows脚本[可改为递归删除某个同名文件夹的脚本]
- 获得文件属性的函数调用实例
- struts中的Action层调用服务层时,不需要在Spring配置文件中做属性注入
- 调用保存对话框保存文件