网站首页  词典首页

请输入您要查询的函数:

 

术语 shcreatedirectory
释义 SHCreateDirectory
语法:
int SHCreateDirectory( HWND hwnd,
LPCWSTR pszPath
);
SHCreateDirectory功能
创建一个文件夹。
参数
hwnd
[in]的句柄父窗口。此参数可以设置为NULL如果没有显示用户界面。
pszPath
[in]指向一个空结尾的Unicode字符串,它包含的完全限定路径的目录。该字符串应该不超过MAX_PATH字符,包括终止NULL字符。
返回值
如果成功,返回ERROR_SUCCESS。如果操作失败,返回下列错误代码之一。
ERROR_BAD_PATHNAMEThe pszPath参数设置为相对路径。
ERROR_FILENAME_EXCED_RANGEThe路径指向pszPath太长。
ERROR_FILE_EXISTSThe目录存在。
ERROR_ALREADY_EXISTSThe目录存在。
ERROR_CANCELLEDThe用户取消了操作。
备注
注意:此功能可通过Windows XP服务包2(SP2)和Microsoft Windows Server 2003的。它可能更改或在Windows的后续版本中不可用。
这个函数创建一个文件系统文件夹的完全合格的路径是由pszPath给出。如果一个或更多的中间夹不存在,它创建它们。
要设置一个新文件夹的安全属性,使用SHCreateDirectoryEx。
功能信息
最低DLL版本 shell32.dll 5.0或更新版本
自定义ImplementationNo
Headershlobj.h
import libraryshell32.lib
2000年最低经营systemsWindows
==英文原文==SHCreateDirectory Function
Creates a folder.
Syntax
int SHCreateDirectory( HWND hwnd,
LPCWSTR pszPath
);
Parameters
hwnd
[in] A handle to a parent window. This parameter can be set to NULL if no user interface is displayed.
pszPath
[in] A pointer to a null-terminated Unicode string that contains the fully-qualified path of the directory. This string should have no more than MAX_PATH characters, including the terminating NULL character.
Return Value
Returns ERROR_SUCCESS if successful. If the operation fails, it returns one of the following error codes.
ERROR_BAD_PATHNAMEThe pszPath parameter was set to a relative path.
ERROR_FILENAME_EXCED_RANGEThe path pointed to by pszPath is too long.
ERROR_FILE_EXISTSThe directory exists.
ERROR_ALREADY_EXISTSThe directory exists.
ERROR_CANCELLEDThe user canceled the operation.
Remarks
Note This function is available through Windows XP Service Pack 2 (SP2) and Microsoft Windows Server 2003. It might be altered or unavailable in subsequent versions of Windows.
This function creates a file system folder whose fully-qualified path is given by pszPath. If one or more of the intermediate folders do not exist, it creates them.
To set security attributes on a new folder, use SHCreateDirectoryEx .
Function Information
Minimum DLL Versionshell32.dll version 5.0 or later
Custom ImplementationNo
Headershlobj.h
Import libraryshell32.lib
Minimum operating systemsWindows 2000
==原始网址==http://msdn.microsoft.com/en-us/library/bb762130(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:16:29