Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pointers in VFP?
Message
From
05/10/2006 13:04:56
 
 
To
05/10/2006 06:07: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:
01159766
Views:
20
>the value returned from SetupDiGetClassDevs is a HANDLE, just like a HWND (window handle).
>It's not an array, its just a single 32bit value you pass on plain to other functions.

Well, Tracy did that, just passed the handle on.

The MSDN help isn't exact about the HDEVINFO, although the H suggests it's a Handle, true.

Help on SetupDiGetClassDevs says it returns a handle to a device information set. Help on SetupDiEnumDeviceInterfaces says, the DeviceInfoSet parameter is a pointer to a device information set that contains the device interfaces for which to return information. And right after talking about a pointer it says: "This handle is typically returned by SetupDiGetClassDevs".

So the real problem was not setting up the lcInterfaceData Buffer, not that pointer/handle thing, if I got you right.

I know for foxpro numeric variables are all the same, but vfp help on Declare-DLL also makes this slight difference between LONG and INTEGER...

Bye, Olaf.
Previous
Reply
Map
View

Click here to load this message in the networking platform