LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I convert the values returned by GetDiskFreeSpace?

Hi,
I want to check that the C: drive has enough room to hold the new data file my program will create. How can I check and be able to determine this. Are the values returned 64 bit?
Thanks in advance,
0 Kudos
Message 1 of 5
(3,657 Views)
By the fact that you mention GetDiskFreeSpace from the SDK, I am assuming that you are not using the CVI Function from the toolkit.

In this case, there is a new function in the SDK called GetDiskFreeSpaceEx. This avoids some of the maths involved with GetDiskFreeSpace function.

The new function uses value types of ULARGE_INTEGER.

If you use the CVI Version in the tool kit, this returns a structure of the following type:

typedef struct {
unsigned long int loBytes;
unsigned long int hiBytes;
} UInt64Type;

he "loBytes" member will contain the low-order 32-bits of the value, and the "hiBytes" member will contain the high-order 32-bits of the value. Use the function UInt64TypeCompareUInt to compare this value with a native 32-bit uns
igned long integer.


I've cut and paste from both the SDK Documentation and the FP Help from CVI to answer the above.

If you need more info, just shout.

Chris
Message 2 of 5
(3,657 Views)
please see the attached file. Thanks!
0 Kudos
Message 3 of 5
(3,656 Views)
Hi,
I would like to help, but cannot. Our old software is no longer operational and has been upgraded to the latest version.
How does this relate to my question I posted??
0 Kudos
Message 5 of 5
(3,656 Views)
please see the attached letter. Thanks!
0 Kudos
Message 4 of 5
(3,656 Views)