Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetVolumeInformation returns 0 with NTFS
Message
From
19/10/1999 08:10:17
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00272024
Message ID:
00278067
Views:
20
>>If you would, please try the following:
>>DECLARE INTEGER GetLastError IN Win32API
>>* If the call fails, issue...
>>lnerror = GetLastError()
>
>Yes I tried out and lnerror returns 0, :-(
>
>>I won't be able to look at this until the morning (EDT), but I'll look at the codde and try to figure out what's going on.
>
>I await for your test (remember is a network volume), thanks.

You have to have declared GetLastError() prior to the event that causes the error, otherwise, the DECLARE...DLL will clear the error pending. IOW, declare GetLastError() before making the API call, and preferably, don't use the catchall Win32API, use KERNEL32.DLL instead, which is the actual provider (the Win32API catchall actually searches several .DLLs for the DLL function, which can be bad with GetLastError(), since the attempt to find the API function will create and clear an error status.)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform