网站首页  词典首页

请输入您要查询的函数:

 

术语 findfirstvolumemountpoint
释义 FindFirstVolumeMountPoint
语法:
C++
HANDLE WINAPI FindFirstVolumeMountPoint(
__in LPTSTR lpszRootPathName,
__out LPTSTR lpszVolumeMountPoint,
__in DWORD cchBufferLength
);
FindFirstVolumeMountPoint功能
检索一个指定的卷上的安装文件夹的名称。 FindFirstVolumeMountPoint是用来扫描开始卷上的安装文件夹。
参数
lpszRootPathName [in]
阿卷GUID该卷路径扫描安装文件夹。一个尾部反斜杠是必需的。
lpszVolumeMountPoint [out]
阿一个缓冲区,它接收的第一个安装文件夹中发现名称的指针。
cchBufferLength [in]
缓冲区接收到的路径安装文件夹的长度,在TCHARs。
返回值
如果函数成功,返回值是一个搜索在随后的调用中使用的FindNextVolumeMountPoint和FindVolumeMountPointClose函数处理。
如果函数失败找到一个卷上的安装文件夹,返回值是INVALID_HANDLE_VALUE错误代码。为了获得更多错误信息,调用GetLastError。
备注
FindFirstVolumeMountPoint函数的安装文件夹,打开一个搜索处理并返回对第一个安装文件夹是在指定的卷找到的信息。处理后建立的搜索,您可以使用FindNextVolumeMountPoint函数其他安装文件夹搜索。当搜索句柄不再需要,密切与FindVolumeMountPointClose函数。
该FindFirstVolumeMountPoint,FindNextVolumeMountPoint和FindVolumeMountPointClose函数返回路径为指定安装文件夹卷。他们不返回驱动器号或卷GUID路径。有关枚举卷信息的GUID为一个卷的路径,看到卷GUID枚举路径。
您不应该承担任何之间的安装由这些职能和装入由其他功能或工具返回文件夹的顺序返回文件夹的顺序关系。
要编译的应用程序使用此函数,定义为0x0500或更高_WIN32_WINNT宏。有关详细信息,请参阅使用Windows头。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinBase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode和ANSI namesFindFirstVolumeMountPointW(Unicode)和FindFirstVolumeMountPointA(ANSI)的
参见
FindNextVolumeMountPoint
FindVolumeMountPointClose
卷管理功能
安装文件夹
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年9月3日
==英文原文==FindFirstVolumeMountPoint Function
Retrieves the name of a mounted folder on the specified volume. FindFirstVolumeMountPoint is used to begin scanning the mounted folders on a volume.
Syntax
C++
HANDLE WINAPI FindFirstVolumeMountPoint(
__in LPTSTR lpszRootPathName,
__out LPTSTR lpszVolumeMountPoint,
__in DWORD cchBufferLength
);
Parameters
lpszRootPathName [in]
A volume GUID path for the volume to scan for mounted folders. A trailing backslash is required.
lpszVolumeMountPoint [out]
A pointer to a buffer that receives the name of the first mounted folder that is found.
cchBufferLength [in]
The length of the buffer that receives the path to the mounted folder, in TCHARs.
Return Value
If the function succeeds, the return value is a search handle used in a subsequent call to the FindNextVolumeMountPoint and FindVolumeMountPointClose functions.
If the function fails to find a mounted folder on the volume, the return value is the INVALID_HANDLE_VALUE error code. To get extended error information, call GetLastError .
Remarks
The FindFirstVolumeMountPoint function opens a mounted folder search handle and returns information about the first mounted folder that is found on the specified volume. After the search handle is established, you can use the FindNextVolumeMountPoint function to search for other mounted folders. When the search handle is no longer needed, close it with the FindVolumeMountPointClose function.
The FindFirstVolumeMountPoint, FindNextVolumeMountPoint, and FindVolumeMountPointClose functions return paths to mounted folders for a specified volume. They do not return drive letters or volume GUID paths. For information about enumerating the volume GUID paths for a volume, see Enumerating Volume GUID Paths .
You should not assume any correlation between the order of the mounted folders that are returned by these functions and the order of the mounted folders that are returned by other functions or tools.
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 namesFindFirstVolumeMountPointW (Unicode) and FindFirstVolumeMountPointA (ANSI)
See Also
FindNextVolumeMountPoint
FindVolumeMountPointClose
Volume Management Functions
Mounted Folders
Send comments about this topic to Microsoft
Build date: 9/3/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa364426(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:22:44