网站首页  词典首页

请输入您要查询的函数:

 

术语 getvolumenameforvolumemountpoint
释义 GetVolumeNameForVolumeMountPoint
语法:
C++
BOOL WINAPI GetVolumeNameForVolumeMountPoint(
__in LPCTSTR lpszVolumeMountPoint,
__out LPTSTR lpszVolumeName,
__in DWORD cchBufferLength
);
GetVolumeNameForVolumeMountPoint功能
检索卷GUID的是与指定的卷装入点(驱动器号,卷关联的卷GUID的路径的路径,或安装文件夹)。
参数
lpszVolumeMountPoint [in]
一个字符串,包含一个安装文件夹(例如道路指针坐标:\\ MountX \\)或1(例如驱动器号,X中:\\)。该字符串必须以反斜杠('\\')。
lpszVolumeName [out]
一个字符串,收卷指针的GUID的道路。此路径的形式为“\\ \\?\\的Volume(GUID)\\”其中GUID是一个GUID标识量。如果有一个以上的卷GUID的数量,只在安装管理器的缓存第一个路径返回。
cchBufferLength [in]
输出缓冲区的长度,在TCHARs。一个缓冲区合理的规模,以适应最大可能的卷GUID路径是50个字符。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
使用GetVolumeNameForVolumeMountPoint取得卷GUID与诸如SetVolumeMountPoint和FindFirstVolumeMountPoint功能,需要一个卷GUID作为输入参数的道路使用的路径。有关卷GUID的路径信息,请参见命名卷。
要编译的应用程序使用此函数,定义为0x0500或更高_WIN32_WINNT宏。有关详细信息,请参阅使用Windows头。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinBase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode和ANSI namesGetVolumeNameForVolumeMountPointW(Unicode)和GetVolumeNameForVolumeMountPointA(ANSI)的
参见
DeleteVolumeMountPoint
GetVolumePathName
SetVolumeMountPoint
卷管理功能
安装文件夹
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年9月3日
==英文原文==GetVolumeNameForVolumeMountPoint Function
Retrieves a volume GUID path for the volume that is associated with the specified volume mount point (drive letter, volume GUID path, or mounted folder).
Syntax
C++
BOOL WINAPI GetVolumeNameForVolumeMountPoint(
__in LPCTSTR lpszVolumeMountPoint,
__out LPTSTR lpszVolumeName,
__in DWORD cchBufferLength
);
Parameters
lpszVolumeMountPoint [in]
A pointer to a string that contains the path of a mounted folder (for example, Y:\\MountX\\) or a drive letter (for example, X:\\). The string must end with a trailing backslash ('\\').
lpszVolumeName [out]
A pointer to a string that receives the volume GUID path. This path is of the form "\\\\?\\Volume{GUID}\\" where GUID is a GUID that identifies the volume. If there is more than one volume GUID path for the volume, only the first one in the mount manager's cache is returned.
cchBufferLength [in]
The length of the output buffer, in TCHARs. A reasonable size for the buffer to accommodate the largest possible volume GUID path is 50 characters.
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 .
Remarks
Use GetVolumeNameForVolumeMountPoint to obtain a volume GUID path for use with functions such as SetVolumeMountPoint and FindFirstVolumeMountPoint that require a volume GUID path as an input parameter. For more information about volume GUID paths, see Naming A Volume .
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 .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinBase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode and ANSI namesGetVolumeNameForVolumeMountPointW (Unicode) and GetVolumeNameForVolumeMountPointA (ANSI)
See Also
DeleteVolumeMountPoint
GetVolumePathName
SetVolumeMountPoint
Volume Management Functions
Mounted Folders
Send comments about this topic to Microsoft
Build date: 9/3/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa364994(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:22:57