API函数GetVolumeInformation()中的参数具体代表什么,这个函数的功能和用法
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/10/01 02:30:10
API函数GetVolumeInformation()中的参数具体代表什么,这个函数的功能和用法
Syntax
GetVolumeInformation(
lpRootPathName:PChar; {根目录名}
lpVolumeNameBuffer:PChar; {接收卷名的缓存}
nVolumeNameSize:DWORD; {指定缓存大小}
lpVolumeSerialNumber:PDWORD;{卷序列号指针}
var lpMaximumComponentLength:DWORD; {maximum file component name}
var lpFileSystemFlags:DWORD; {文件系统格式标记}
lpFileSystemNameBuffer:PChar;{文件系统格式缓存}
nFileSystemNameSize:DWORD {文件系统名称}
):BOOL;
下面为示例
procedure TForm1.Button1Click(Sender:TObject);
var
RootPath:array[0..20] of Char; // holds the root directory name
VolName:array[0..255] of Char; // holds the volume name
SerialNumber:DWORD; // holds the serial number
MaxCLength:DWORD; // holds the maximum file component length
FileSysFlag:DWORD; // holds file system flags
FileSysName:array[0..255] of Char; // holds the name of the file system
begin
{indicate information is to be retrieved from the C drive}
RootPath := 'C:\';
{retrieve the volume information}
GetVolumeInformation(RootPath,VolName,255,@SerialNumber,MaxCLength,
FileSysFlag,FileSysName,255);
{display the information}
Panel2.Caption := VolName;
Panel3.Caption := IntToHex(SerialNumber,8);
Panel4.Caption := FileSysName;
end;
GetVolumeInformation(
lpRootPathName:PChar; {根目录名}
lpVolumeNameBuffer:PChar; {接收卷名的缓存}
nVolumeNameSize:DWORD; {指定缓存大小}
lpVolumeSerialNumber:PDWORD;{卷序列号指针}
var lpMaximumComponentLength:DWORD; {maximum file component name}
var lpFileSystemFlags:DWORD; {文件系统格式标记}
lpFileSystemNameBuffer:PChar;{文件系统格式缓存}
nFileSystemNameSize:DWORD {文件系统名称}
):BOOL;
下面为示例
procedure TForm1.Button1Click(Sender:TObject);
var
RootPath:array[0..20] of Char; // holds the root directory name
VolName:array[0..255] of Char; // holds the volume name
SerialNumber:DWORD; // holds the serial number
MaxCLength:DWORD; // holds the maximum file component length
FileSysFlag:DWORD; // holds file system flags
FileSysName:array[0..255] of Char; // holds the name of the file system
begin
{indicate information is to be retrieved from the C drive}
RootPath := 'C:\';
{retrieve the volume information}
GetVolumeInformation(RootPath,VolName,255,@SerialNumber,MaxCLength,
FileSysFlag,FileSysName,255);
{display the information}
Panel2.Caption := VolName;
Panel3.Caption := IntToHex(SerialNumber,8);
Panel4.Caption := FileSysName;
end;
API函数GetVolumeInformation()中的参数具体代表什么,这个函数的功能和用法
c语言中,关于函数time();的用法.括号中不同参数代表什么?
VFP中的CTOD()函数的具体用法是什么?
请列出以下标准C函数的函数名称、函数功能、函数的参数(个数、顺序、类型)和函数的返回值
getline函数如何使用?后面的参数都代表什么?
getchar(),putchar()函数的形式是什么?参数代表什么含义?
反比例函数和一次函数二次函数中的的a,b c分别代表什么,
mul函数的具体用法
Fix函数的具体用法,
sort函数的具体用法?
sleep函数的具体用法
"写ADT,并说明函数功能、入口参数、出口参数"?这里入出口参数指什么?