网站首页  词典首页

请输入您要查询的函数:

 

术语 findfirstvolume
释义 FindFirstVolume
语法:
C++
HANDLE WINAPI FindFirstVolume(
__out LPTSTR lpszVolumeName,
__in DWORD cchBufferLength
);
FindFirstVolume功能
检索计算机上的卷名。 FindFirstVolume用于开始扫描的计算机的数量。
参数
lpszVolumeName [out]
一个缓冲区收到一个空结尾的字符串,指定一个卷指针的GUID首卷,发现道路。
cchBufferLength [in]
缓冲区的长度,收卷的GUID TCHARs路径。
返回值
如果函数成功,返回值是一个搜索在随后的调用中使用的FindNextVolume和FindVolumeClose函数处理。
如果函数未能找到任何卷,返回值是INVALID_HANDLE_VALUE错误代码。为了获得更多错误信息,调用GetLastError。
备注
该FindFirstVolume函数打开一个卷的搜索,并返回处理有关在计算机上发现了第一个卷信息。处理后建立的搜索,您可以使用FindNextVolume功能为其他卷搜索。当搜索句柄不再需要关闭使用FindVolumeClose函数。
您不应该承担任何之间的由这些职能的卷在计算机上,以便产生量阶相关。特别是,不承担任何体积之间的秩序,由BIOS分配驱动器号关联(如有)或磁盘管理器。
要编译的应用程序使用此函数,定义为0x0500或更高_WIN32_WINNT宏。有关详细信息,请参阅使用Windows头。
实例
有关示例,请参见显示音量路径。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinBase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode和ANSI namesFindFirstVolumeW(Unicode)和FindFirstVolumeA(ANSI)的
参见
FindNextVolume
FindVolumeClose
卷管理功能
安装文件夹
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年9月3日
==英文原文==FindFirstVolume Function
Retrieves the name of a volume on a computer. FindFirstVolume is used to begin scanning the volumes of a computer.
Syntax
C++
HANDLE WINAPI FindFirstVolume(
__out LPTSTR lpszVolumeName,
__in DWORD cchBufferLength
);
Parameters
lpszVolumeName [out]
A pointer to a buffer that receives a null-terminated string that specifies a volume GUID path for the first volume that is found.
cchBufferLength [in]
The length of the buffer to receive the volume GUID path, in TCHARs.
Return Value
If the function succeeds, the return value is a search handle used in a subsequent call to the FindNextVolume and FindVolumeClose functions.
If the function fails to find any volumes, the return value is the INVALID_HANDLE_VALUE error code. To get extended error information, call GetLastError .
Remarks
The FindFirstVolume function opens a volume search handle and returns information about the first volume found on a computer. After the search handle is established, you can use the FindNextVolume function to search for other volumes. When the search handle is no longer needed, close it by using the FindVolumeClose function.
You should not assume any correlation between the order of the volumes that are returned by these functions and the order of the volumes that are on the computer. In particular, do not assume any correlation between volume order and drive letters as assigned by the BIOS (if any) or the Disk Administrator.
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 Displaying Volume Paths .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinBase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode and ANSI namesFindFirstVolumeW (Unicode) and FindFirstVolumeA (ANSI)
See Also
FindNextVolume
FindVolumeClose
Volume Management Functions
Mounted Folders
Send comments about this topic to Microsoft
Build date: 9/3/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa364425(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:30:46