Ok so I need help. If this was any other Basic language, I would have (and have) figured this out, but DB's way of calling DLL's differs a bit.
I've gone through the API docs on andreasvb and made sure the parameters matched, even explicitly said variable$ as string and such, but no matter what I type, I always get 0 as the volume serial and/or name. I'll post my code, as that should show what I'm doing wrong.
If I could just have one example of how to call this thing to return a value, it would be much appreciated. Also, previous threads with kernel32 or DLL's, I did search, and only found ones that don't have more than one parameter being returned. I'll work on this more tomorrow morning, been up for 19 hours so far.
Thanks.
cls
print "Loading DLL..."
LOAD DLL "kernel32.dll",1
if DLL EXIST(1)=1
print "Calling DLL Function...";
if DLL CALL EXIST(1, "GetVolumeInformationA")=1
print "okay."
`VolLabel$ as string
`Name$ as string
`CALL DLL 1, "GetVolumeInformationA", 0, VolLabel$, VolSize, Serial$, MaxLen, Flags, Name$, NameSize
print VolLabel$
print Serial$
print Name$
ps. that's just the relevant snippet, I copied from the tutorial then modified it using the API how-to websites.
Signed
------