Hi,
I’ve built up a DevInfo list with
SetupDiGetClassDevsEx((struct _GUID *) &GUID_DEVCLASS_MODEM,
NULL,
NULL,
DIGCF_DEVICEINTERFACE,
NULL,
NULL,
NULL
);
But when I try to
DeviceInterfaceData.cbSize = sizeof(SP_DEVICE_INTERFACE_DATA);
SetupDiEnumDeviceInterfaces(hDevInfo, NULL, (struct _GUID *)
&GUID_DEVCLASS_MODEM, 0, &DeviceInterfaceData);
SetupDiEnumDeviceInterfaces() always returns FALSE. GetLastError() returns
ERROR_NO_MORE_ITEMS. I have a USB modem installed on the machine.
Am I missing something? My understanding is that SetupDiGetClassDevs()
builds a list of Modem-class devices and then SetupDiEnumDeviceInterfaces()
should return DeviceInterfaceData for the first (Index = 0) such modem.
Ultimately, I want to get the device path for the USB modem so I can do a CreateFile
on it.
Thanks in advance,
Lee
*************************** ADVERTISEMENT ******************************
For ALL the latest Soccer news on your club, GAA sports results and the
latest on your F1 stars plus much more check out
http://sport.iol.ie/sport. Sport On-Line… It’s a passion
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com