Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Win32API funcions on FPW26
Message
 
 
To
15/07/2003 13:44:37
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00810180
Message ID:
00810378
Views:
15
This message has been marked as the solution to the initial question of the thread.
Hi Claudio,

You have to follow doc's to get it to work. :)
#Define MAX_FILENAME_LEN 256
SET PROCEDURE TO CALL32
SET LIBRARY TO home()+"FOXTOOLS" ADDITIVE
lhcall32 = Reg32("GetVolumeInformation", "Kernel32.dll", "ppippppi") 
lhGV = RegFP("C@CL@L@L@L@CL", "L") 
Store 0 to ser,i,j
Store space(256) to s,s2
lcVolume = "C:\"
= CallFn(lhGV, lcVolume, @s, MAX_FILENAME_LEN, @ser, @i, @j, @s2, MAX_FILENAME_LEN, lhcall32)
? ser
>Here is the code (with Rick's stuffs)
>
>
>
>*** Front end routines for Call32 Interface
>set defa to f:\temp3\tests\
>
>SET PROCEDURE TO CALL32
>
>SET LIBRARY TO home()+"FOXTOOLS" ADDITIVE
>CLEAR
>
>cVolume=Reg32("GetVolumeInformation", "CCI@@@CI", "I") && it hangs here
>
>=CallFn(cVolume, "C:\", s, MAX_FILENAME_LEN, @ser, @i, @j, s2, MAX_FILENAME_LEN)
>return
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform