Skip to content

Latest commit

 

History

History
77 lines (62 loc) · 1.93 KB

nf-fileapi-getdiskspaceinformationa.md

File metadata and controls

77 lines (62 loc) · 1.93 KB
UIDtech.roottitlems.datetargetosdescriptionprereleasereq.assemblyreq.construct-typereq.ddi-compliancereq.dllreq.headerreq.idlreq.include-headerreq.irqlreq.kmdf-verreq.libreq.max-supportreq.namespacereq.redistreq.target-min-winverclntreq.target-min-winversvrreq.target-typereq.type-libraryreq.umdf-verreq.unicode-ansitopic_typeapi_typeapi_locationapi_namef1_keywordsdev_langshelpviewer_keywords
NF:fileapi.GetDiskSpaceInformationA
fs
GetDiskSpaceInformationA function (fileapi.h)
01/05/2023
Windows
Gets disk space information for a volume at a given root path.
false
function
kernel32.dll
fileapi.h
Windows.h
kernel32.lib
Windows 10 Build 17763 [desktop apps \| UWP apps]
Windows 10 Server 2019 [desktop apps \| UWP apps]
apiref
DllExport
kernel32.dll
API-MS-Win-Core-File-l1-2-3
GetDiskSpaceInformationA
GetDiskSpaceInformation
GetDiskSpaceInformationA
fileapi/GetDiskSpaceInformationA
GetDiskSpaceInformation
fileapi/GetDiskSpaceInformation
c++
GetDiskSpaceInformationA

-description

Gets disk space information for a volume at a given root path.

-parameters

-param rootPath

A pointer to a string that contains the root directory of the volume to be queried.

If this parameter is NULL, the function uses the root of the current disk.

-param diskSpaceInfo

A DISK_SPACE_INFORMATION structure containing information about the current disk space for the volume at the given root path.

-returns

Returns TRUE if the function succeeds, or FALSE if it fails. To get extended error information, call the GetLastError function.

-remarks

The rootPath must be a root path, such as C:\ or D:\, and not a subdirectory of a root path.

-see-also

GetDiskSpaceInformationW

DISK_SPACE_INFORMATION

close