VFS_GetFreeDiskSpace(
     HANDLE:hVFSData,
     LPVFSFUNCDATA:lpFuncData,
     LPTSTR:lpszPath,
     unsigned __int64*:piFreeBytesAvailable,
     unsigned __int64*:piTotalBytes,
     unsigned __int64*:piTotalFreeBytes
)
→ BOOL

Arguments

hVFSData

[in] The handle to the namespace instance data

lpFuncData

[in] unused

lpszPath

[in] A null-terminated string containing the path to retrieve free disk space for.

piFreeBytesAvailable

[out] Points to an unsigned 64 bit value to receive the number of free bytes available for the current user (may be NULL)

piTotalBytes

[out] Points to an unsigned 64 bit value to receive the total number of bytes on the disk (may be NULL)

piTotalFreeBytes

[out] Points to an unsigned 64 bit value to receive the total number of free bytes on the disk (may be NULL)

Return value

You should place the requested sizes in the supplied parameters and return TRUE. If an error occurs you should return FALSE.

Description

The VFS_GetFreeDiskSpace function is called to retrieve information about the free and used space in your plugin's namespace.

Directory Opus may not request all three sizes at once - you must check that the pointers are not NULL before placing data in them.