函数参考


_WinAPI_CreateDirectoryEx

Creates a new directory with the attributes of a specified template directory.

#Include <WinAPIEx.au3>
_WinAPI_CreateDirectoryEx ( $sNewDir, $sTemplateDir [, $tSecurity] )

参数

$sNewDir The path of the directory to be created.
$sTemplateDir The path of the directory to use as a template when creating the new directory.
$tSecurity [可选参数] $tagSECURITY_ATTRIBUTES structure that specifies a security descriptor for the new directory.
If this parameter is 0, the directory gets a default security descriptor. The ACL in the default
security descriptor for a directory are inherited from its parent directory.

返回值

成功: 返回 1.
失败: 返回 0 并设置 @error 标志为非 0 值.

注意/说明

The _WinAPI_CreateDirectoryEx() function allows you to create directories that inherit stream information
from other directories. This function is useful, for example, when you are using Macintosh directories, which
have a resource stream that is needed to properly identify directory contents as an attribute.

相关

详情参考

在MSDN中搜索