Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pointers in VFP?
Message
From
05/10/2006 09:38:54
 
 
To
05/10/2006 06:41:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01158687
Message ID:
01159668
Views:
43
Thanks for looking at it Olaf!


>Hi Tracy,
>
>HDEVINFO is defined as PVOID, PVOID is defined as void* PVOID. That makes it a pointer to void. I found it out searching HDEVINFO here: http://www.reactos.org/generated/doxygen/search.php?query=HDEVINFO
>
>I'd say try it with LONG instead of INTEGER then.
>
>
>DECLARE LONG SetupDiGetClassDevs IN setupapi.dll ;
>    STRING @cGuid, ;
>    STRING Enumerator, ;
>    INTEGER hwndParent, ;
>    INTEGER nFlags
>
>...
>
>DECLARE INTEGER SetupDiEnumDeviceInterfaces IN setupapi;
>	LONG DeviceInfoSet,;
>	STRING @ DeviceInfoData,;
>	STRING @ ByRefterfaceClassGuid,;
>	INTEGER MemberIndex,;
>	STRING @ DeviceInterfaceData
>
>
>Help on Declare-DLL says it's both 32 bit, but LONG is 32bit long integer, I think they meant LONG is unsigned. That may help, didn't check it out though.
>
>Bye, Olaf.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform