Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetDiskFreeSpace
Message
From
11/11/1997 18:01:25
 
 
To
11/11/1997 10:57:50
Alex Zhadanov
Computer Generated Solutions
New York City, New York, United States
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00059383
Message ID:
00059603
Views:
42
>>It's included in Win32s. (You must have installed the Win32s package in order to access it.)
>>
>>Vlad
>>
>>>Hi all!
>>>May be somebody knows if such API function exist for Windows 3.x platform.
>>>I found this API only for WINDOWS 95.
>>>And i could not find this or similar functions for WINDOWS NT or Windows 3.1
>>>How can i find out FREE SPACE for disk if i work with FOXPRO 2.6.
>>>
>>>THANKS Alex
>Thank you for response.
>How can i call this function using regfn and callfn from Win32s in FOXPRO 2.6?

Probably:
lnGDFS = RegFn("GetDiskFreeSpace", "@C@I@I@I@I", "I", "kernel32.dll")
lnError = CallFn(lnGDFS, "C:\", @lnA, @lnB, @lnC, @lnD)

I'm not sure you can call 32-bit DLL functions using FoxTools on Win32s. I'm also not sure about the syntax, since it's a loooong way back since I haven't used it. :)

>What dll library contains this function?

kernel32.dll

>It seems to me that Win32s works only with VFP 3.0. May be I am wrong.
>
>And may be you know why API call to function GetDriveType always return 0
>Syntax of command line :
>ll = REGFN("GetDriveType","@C","I")
>drive = "C:\"
>cc = CALLFN(ll,@drive)
>cc is 0

1. Is ll > 0?
2. I think you must specify the kernel32.dll library in RegFn. (?)

>Thank you.
> Multumesc.

:) You're welcome.

Vlad
Previous
Reply
Map
View

Click here to load this message in the networking platform