网站首页  词典首页

请输入您要查询的函数:

 

术语 setvolumemountpoint
释义 SetVolumeMountPoint
语法:
C++
BOOL WINAPI SetVolumeMountPoint(
__in LPCTSTR lpszVolumeMountPoint,
__in LPCTSTR lpszVolumeName
);
SetVolumeMountPoint功能
协会卷的驱动器号或另一个卷上的目录。
参数
lpszVolumeMountPoint [in]
用户模式的道路,必须与音量。这可能是一个(例如驱动器号,X中:\\)或另一个卷(例如目录坐标:\\ MountX)。该字符串必须以反斜杠('\\')。
lpszVolumeName [in]
阿卷GUID该卷的路径。此字符串必须是形如“\\ \\?\\的Volume(GUID)\\”其中GUID是一个GUID标识量。在\\ \\?\\关闭路径解析和被忽略,作为路径的一部分,如命名一个卷讨论。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
如果lpszVolumeMountPoint参数包含路径安装文件夹,GetLastError返回ERROR_DIR_NOT_EMPTY,即使该目录是空的。
备注
当这个功能是用于另一个卷上的目录关联卷,相关的目录称为安装文件夹。
这是一个有一个目录,有任何文件或子目录的错误也卷关联。出现此错误的系统和隐藏的目录,以及其他目录,并为系统和隐藏文件的发生。
当安装文件夹是在群集上的磁盘卷创建的,他们可能会被删除在某些情况下意外。有关如何创建和配置信息安装文件夹,以确保这不会发生,请参见“群集磁盘驱动器连接的问题”解决在服务器群集的Windows Server联机帮助部分主题。
要编译的应用程序使用此函数,定义为0x0500或更高_WIN32_WINNT宏。有关详细信息,请参阅使用Windows头。
实例
有关示例,请参阅创建安装文件夹。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinBase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode和ANSI namesSetVolumeMountPointW(Unicode)和SetVolumeMountPointA(ANSI)的
参见
DeleteVolumeMountPoint
GetVolumeNameForVolumeMountPoint
GetVolumePathName
卷管理功能
安装文件夹
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年9月3日
==英文原文==SetVolumeMountPoint Function
Associates a volume with a drive letter or a directory on another volume.
Syntax
C++
BOOL WINAPI SetVolumeMountPoint(
__in LPCTSTR lpszVolumeMountPoint,
__in LPCTSTR lpszVolumeName
);
Parameters
lpszVolumeMountPoint [in]
The user-mode path to be associated with the volume. This may be a drive letter (for example, X:\\) or a directory on another volume (for example, Y:\\MountX). The string must end with a trailing backslash ('\\').
lpszVolumeName [in]
A volume GUID path for the volume. This string must be of the form "\\\\?\\Volume{GUID}\\" where GUID is a GUID that identifies the volume. The \\\\?\\ turns off path parsing and is ignored as part of the path, as discussed in Naming a Volume .
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
If the lpszVolumeMountPoint parameter contains a path to a mounted folder, GetLastError returns ERROR_DIR_NOT_EMPTY, even if the directory is empty.
Remarks
When this function is used to associate a volume with a directory on another volume, the associated directory is called a mounted folder.
It is an error to associate a volume with a directory that has any files or subdirectories in it. This error occurs for system and hidden directories as well as other directories, and it occurs for system and hidden files.
When mounted folders are created on a volume on a clustered disk, they may be deleted unexpectedly under certain circumstances. For information on how to create and configure mounted folders to ensure that this does not happen, see the "Cluster Disk and Drive Connection Problems" troubleshooting topic in the Server Clusters section of the Windows Server online help.
To compile an application that uses this function, define the _WIN32_WINNT macro as 0x0500 or later. For more information, see Using the Windows Headers .
Examples
For an example, see Creating a Mounted Folder .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinBase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode and ANSI namesSetVolumeMountPointW (Unicode) and SetVolumeMountPointA (ANSI)
See Also
DeleteVolumeMountPoint
GetVolumeNameForVolumeMountPoint
GetVolumePathName
Volume Management Functions
Mounted Folders
Send comments about this topic to Microsoft
Build date: 9/3/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa365561(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 11:26:47