网站首页  词典首页

请输入您要查询的函数:

 

术语 shgetdiskfreespace
释义 SHGetDiskFreeSpace
语法:
BOOL SHGetDiskFreeSpace( LPCTSTR pszVolume,
ULARGE_INTEGER *pqwFreeCaller,
ULARGE_INTEGER *pqwTot,
ULARGE_INTEGER *pqwFree
);
SHGetDiskFreeSpace功能
检索磁盘的磁盘卷空间信息。
参数
pszVolume
一个以null 结尾的字符串,用于指定的大小信息检索量。这可能是一个驱动器号,通用命名约定(UNC)名称,或一个文件夹的路径。您不能使用null来表示当前驱动器。
当使用Shell32.dll中版本为5.0版,这必须是一个ANSI字符串。 Unicode是不支持这些版本。
pqwFreeCaller
一个ULARGE_INTEGER价值,它接收的字节卷上的可用电话申请号的地址。如果操作系统实现了每个用户的配额,这个值可能低于自由字节卷上的总数。
pqwTot
The address of a ULARGE_INTEGER value that receives the total size of the volume, in bytes.
pqwFree
一个ULARGE_INTEGER价值,它接收的字节的可用空间卷上的数字地址。
返回值
如果成功返回TRUE,否则返回FALSE。
备注
在Shell32.dll版本5.0和更高版本,SHGetDiskFreeSpace没有自己的执行情况,并在Shellapi.h定义如下所示。
#define SHGetDiskFreeSpace SHGetDiskFreeSpaceEx
当您调用SHGetDiskFreeSpace,实际上是要求SHGetDiskFreeSpaceEx。
这个函数调用GetDiskFreeSpaceEx函数如果它的作业系统。如果GetDiskFreeSpaceEx不可用,这是仿效调用GetDiskFreeSpace函数和操作的返回值。有关其他信息,请参阅GetDiskFreeSpaceEx文件。
功能信息
最低DLL版本 shell32.dll版本4.71或更高版本
自定义ImplementationNo
Headershellapi.h
import libraryshell32.lib
2000年最低经营systemsWindows时,Windows NT 4.0与Internet Explorer 4.0,视窗98,视窗与Internet Explorer 4.0 95
参见
SHGetDiskFreeSpaceEx,GetDiskFreeSpaceEx
==英文原文==SHGetDiskFreeSpace Function
Retrieves disk space information for a disk volume.
Syntax
BOOL SHGetDiskFreeSpace( LPCTSTR pszVolume,
ULARGE_INTEGER *pqwFreeCaller,
ULARGE_INTEGER *pqwTot,
ULARGE_INTEGER *pqwFree
);
Parameters
pszVolume
A null-terminated string that specifies the volume for which size information is retrieved. This can be a drive letter, Universal Naming Convention (UNC) name, or the path of a folder. You cannot use NULL to represent the current drive.
When using Shell32.dll versions previous to version 5.0, this must be an ANSI string. Unicode is not supported in those versions.
pqwFreeCaller
The address of a ULARGE_INTEGER value that receives the number of bytes on the volume available to the calling application. If the operating system implements per-user quotas, this value may be less than the total number of free bytes on the volume.
pqwTot
The address of a ULARGE_INTEGER value that receives the total size of the volume, in bytes.
pqwFree
The address of a ULARGE_INTEGER value that receives the number of bytes of free space on the volume.
Return Value
Returns TRUE if successful, FALSE otherwise.
Remarks
In Shell32.dll version 5.0 and later, SHGetDiskFreeSpace does not have its own implementation and is defined in Shellapi.h as shown here.
#define SHGetDiskFreeSpace SHGetDiskFreeSpaceEx
When you call SHGetDiskFreeSpace, you are actually calling SHGetDiskFreeSpaceEx .
This function calls the GetDiskFreeSpaceEx function if it is available on the operating system. If GetDiskFreeSpaceEx is not available, it is emulated by calling the GetDiskFreeSpace function and manipulating the return values. For additional information, see the documentation for GetDiskFreeSpaceEx.
Function Information
Minimum DLL Versionshell32.dll version 4.71 or later
Custom ImplementationNo
Headershellapi.h
Import libraryshell32.lib
Minimum operating systemsWindows 2000, Windows NT 4.0 with Internet Explorer 4.0, Windows 98, Windows 95 with Internet Explorer 4.0
See Also
SHGetDiskFreeSpaceEx , GetDiskFreeSpaceEx
==原始网址==http://msdn.microsoft.com/en-us/library/bb762176(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:45