Re: Lua Alien library
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Lua Alien library
- From: Duncan Cross <duncan.cross@...>
- Date: 2010年4月24日 13:32:59 +0100
2010年4月24日 Attila <ejjeliorjarat@gmail.com>:
> After your help, I was able to load it, and almost works perfectly.
> Currently I want to use GetVolumeInformationA, which prototype is the
> following:
> BOOL ::GetVolumeInformation(LPCWSTR lpRootPathName, LPWSTR
> lpVolumaNameBuffer, DWORD nVolumeNameSize, LPDWORD
> lpVolumeSerialNumber,LPDWORD lpMaximumComponentLength, LPDWORD
> lpFileSystemFlag, LPWSTR lpFileSystemNameBuffer,DWORD nFileSystemNameSize)
> LPDWORD is unsigned long* , so I should pass a referenced value to get the
> value, but I can't, because only ref char, ref int and ref double are
> available, but ref long isn't. What can I do to make this working?
> I Googled a lot, but there is only one working Windows example on the
> stackoverflow forum. Can somebody mention some places where I can find more?
> Thanks: Attila
>
It seems that a DWORD is defined as a 32-bit unsigned integer [1] so
try using "ref uint".
[1] http://msdn.microsoft.com/en-us/library/cc230318%28PROT.10%29.aspx
-Duncan