网站首页  词典首页

请输入您要查询的函数:

 

术语 setvolumelabel
释义 SetVolumeLabel
语法:
C++
BOOL WINAPI SetVolumeLabel(
__in_opt LPCTSTR lpRootPathName,
__in_opt LPCTSTR lpVolumeName
);
SetVolumeLabel功能
设置文件系统卷标。
参数
lpRootPathName [中,可选]
一个字符串,包含了该卷的(例如,驱动器号的指针,X中:\\)或一个安装文件夹的体积(例如相关的路径坐标:\\ MountX \\)。该字符串必须以反斜杠('\\')。如果该参数为NULL,则当前目录的根使用。
lpVolumeName [中,可选]
一个字符串,其中包含该卷新标签的指针。如果该参数为NULL,则函数删除从指定卷上的任何现有的标签,不分配一个新的标签。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
标签是一个用户友好的名称,用户分配给一个卷,使其更容易识别。阿量可以有一个标签,一个驱动器号,两个,或两者都不是。有关更多信息,请参见命名一个卷。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinBase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode和ANSI namesSetVolumeLabelW(Unicode)和SetVolumeLabelA(ANSI)的
参见
GetVolumeInformation
卷管理功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年9月3日
==英文原文==SetVolumeLabel Function
Sets the label of a file system volume.
Syntax
C++
BOOL WINAPI SetVolumeLabel(
__in_opt LPCTSTR lpRootPathName,
__in_opt LPCTSTR lpVolumeName
);
Parameters
lpRootPathName [in, optional]
A pointer to a string that contains the volume's drive letter (for example, X:\\) or the path of a mounted folder that is associated with the volume (for example, Y:\\MountX\\). The string must end with a trailing backslash ('\\'). If this parameter is NULL, the root of the current directory is used.
lpVolumeName [in, optional]
A pointer to a string that contains the new label for the volume. If this parameter is NULL, the function deletes any existing label from the specified volume and does not assign a new label.
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
A label is a user-friendly name that a user assigns to a volume to make it easier to recognize. A volume can have a label, a drive letter, both, or neither. For more information, see Naming a Volume .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinBase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode and ANSI namesSetVolumeLabelW (Unicode) and SetVolumeLabelA (ANSI)
See Also
GetVolumeInformation
Volume Management Functions
Send comments about this topic to Microsoft
Build date: 9/3/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa365560(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:28:58