Dear All,
I would like to communicate directly with USB and parallel local
printers using CreateFile, WriteFile and ReadFile functions from the
Windows API.
To retrieve local printers connected to a PC, I used the setupapi with
the printer setup class as follow :
SetupDiGetClassDevs(&GUID_DEVCLASS_PRINTER, 0, 0, DIGCF_PRESENT);
Then I could enumerate the printers using SetupDiEnumDeviceInfo ().
To communicate with the printers using CreateFile, WriteFile and
ReadFile functions, I figured out I had to retrieve the "symbolic name"
of the printers using SetupDiGetDeviceInterfaceDetail ().
How can I get the device interfaces of the printers I retrieved using
SetupDiEnumDeviceInfo () ? What is the link between setup class and
interface class ?
Best regards,
Guillaume.