Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pointers in VFP?
Message
From
05/10/2006 06:41:57
 
 
To
04/10/2006 10:45:06
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:
01159604
Views:
24
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform