网站首页  词典首页

请输入您要查询的函数:

 

术语 getvolumesfromdrive
释义 GetVolumesFromDrive
语法:
C++
DWORD GetVolumesFromDrive(
__in LPWSTR pszDriveName,
__out LPWSTR * VolumeNameBufferPtr,
__out LPWSTR * DriveLetterBufferPtr
);
GetVolumesFromDrive功能
[移动存储管理不再作为Windows 7和Windows服务器2008 R2提供。]
该GetVolumesFromDrive函数检索的数量和驱动器对于一个给定的信可移动存储媒体的驱动器。
参数
pszDriveName [in]
在可移动存储介质驱动器的名称。
VolumeNameBufferPtr [out]
该卷是可移动存储介质驱动器。
DriveLetterBufferPtr [out]
该驱动器号代表可移动存储介质驱动器。
返回值
如果函数成功,返回值是ERROR_SUCCESS。
如果函数失败,返回值是系统错误代码之一。
备注
这个函数假定将有一个可移动磁盘只有零个或一个分区,因此最多只有一个驱动器号和1卷名。
要求:
client最低支持Vista
最低支持serverWindows服务器2003
客户端 支持 Windows Vista
服务器 支持 Windows Server 2008
HeaderNtmsapi.h
LibraryNtmsapi.lib
DLLNtmsapi.dll
Unicode和ANSI namesGetVolumesFromDriveW(Unicode)和GetVolumesFromDriveA(ANSI)的
参见
库控制功能
GetNtmsObjectInformation
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==GetVolumesFromDrive Function
[ Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The GetVolumesFromDrive function retrieves the volume and drive letter for a given removable storage media drive.
Syntax
C++
DWORD GetVolumesFromDrive(
__in LPWSTR pszDriveName,
__out LPWSTR * VolumeNameBufferPtr,
__out LPWSTR * DriveLetterBufferPtr
);
Parameters
pszDriveName [in]
The name of the removable storage media drive.
VolumeNameBufferPtr [out]
The volume that represents the removable storage media drive.
DriveLetterBufferPtr [out]
The drive letter that represents the removable storage media drive.
Return Value
If the function succeeds, the return value is ERROR_SUCCESS.
If the function fails, the return value is one of the system error codes .
Remarks
This function assumes there will be only zero or one partitions on a removable disk, so there is at most one drive letter and one volume name.
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2003
End of client supportWindows Vista
End of server supportWindows Server 2008
HeaderNtmsapi.h
LibraryNtmsapi.lib
DLLNtmsapi.dll
Unicode and ANSI namesGetVolumesFromDriveW (Unicode) and GetVolumesFromDriveA (ANSI)
See Also
Library Control Functions
GetNtmsObjectInformation
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/bb540681(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:23:18