Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pointers in VFP?
Message
De
05/10/2006 06:41:57
 
 
À
04/10/2006 10:45:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01158687
Message ID:
01159604
Vues:
25
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform