Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting API calls to VB6 - help requested.

Status
Not open for further replies.

HughesD

Programmer
Mar 29, 2005
2
GB
Hi,

Can anyone give some guidance on coverting the following API calls to VB6 - Types/Datatypes etc.

1)
BOOL SetupDiSetDeviceRegistryProperty(
HDEVINFO DeviceInfoSet,
PSP_DEVINFO_DATA DeviceInfoData,
DWORD Property,
CONST BYTE * PropertyBuffer,
DWORD PropertyBufferSize
);

*******************************************************

2)
typedef struct _SP_DEVINFO_DATA { DWORD cbSize; GUID ClassGuid; DWORD DevInst; ULONG_PTR Reserved;
} SP_DEVINFO_DATA, *PSP_DEVINFO_DATA;

*******************************************************

3)
HDEVINFO SetupDiGetClassDevs(
const GUID* ClassGuid,
PCTSTR Enumerator,
HWND hwndParent,
DWORD Flags
);

********************************************************


Thanks,

Duncan
 
I can't take credit for punching it into google but the very first link has your answer!

 
hehe,

Sorry, thats terrible of me. In my defense though I have been trying to work with this and a few other similar functions - I must have contracted google blindness - it was late in the UK when I posted this!!!

Thanks for not biting my head off!!!

Cheers,

Duncan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top