accessing the HP scanner

Hi,
I am new to the field of USB. I have been trying to access the HP scanner
through the USB port. It seems I am facing problem with this line
hardwareDeviceInfo =
SetupDiGetClassDevs(const_cast(&guidDeviceInterface), NULL, NULL,
DIGCF_PRESENT | DIGCF_INTERFACEDEVICE);

I am unable to find the correct value that I have to pass to the ClassGuid
parameter. Could anybody suggest what I should do or where I can get the
value from.
OR
should I use DIGCF_ALLCLASSES instead of the two flags that I have mentioned
here.

I am working on the Win98 platform.
Any help would be appreciated

regards
Arvind

You can try Image Class as the Class GUID.

-----Original Message-----
From: Arvind Raman [mailto:xxxxx@blr.pin.philips.com]
Sent: Sunday, November 19, 2000 10:22 PM
To: NT Developers Interest List
Subject: [ntdev] accessing the HP scanner

Hi,
I am new to the field of USB. I have been trying to access the HP scanner
through the USB port. It seems I am facing problem with this line
hardwareDeviceInfo =
SetupDiGetClassDevs(const_cast(&guidDeviceInterface), NULL, NULL,
DIGCF_PRESENT | DIGCF_INTERFACEDEVICE);

I am unable to find the correct value that I have to pass to the ClassGuid
parameter. Could anybody suggest what I should do or where I can get the
value from.
OR
should I use DIGCF_ALLCLASSES instead of the two flags that I have mentioned
here.

I am working on the Win98 platform.
Any help would be appreciated

regards
Arvind


You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)