FGetVolInfo (LabVIEW Manager Function)

MgErr FGetVolInfo(path, vinfo);

Purpose

Gets a path specification and information for the volume containing the specified file or directory.

Parameters

Name Type Description
path Path Path of a file or directory contained on the volume from which you want to get information. This path is overwritten with a path specifying the volume containing the specified file or directory. If an error occurs, path is undefined.
vinfo VInfoRec * Address at which FgetVolInfo stores the information about the volume. If an error occurs, vinfo is undefined. This parameter is a pointer.

The following code describes the volume information record, VInfoRec.

typedef struct {
uint32 size;/* size in bytes of a volume */
uint32 used;/* number of bytes used on volume */
uint32 free;/* number of bytes available for use on volume */
}VInfoRec;

Return Value

MgErr, which can contain the following errors. If you receive errors from LabVIEW Manager functions, most error names correspond to LabVIEW error codes.

Value Corresponding Error Code or Description
noErrNo error.
mgArgErr1
fIOErr6