I have an MCF51JE256CLK that I made a printer device. It enumerates as a printing device and loads the standard kernal mode driver for printing on windows. USBPrint.sys. I can print to it by using the "Add Printer" Wizard for windows and open a USB001 port. But my device still lives in the unspecified category in "Devices and Printers".
What I would like to do is use an existing .dll user mode driver with a custom .inf and .GPD file. To my understanding, windows checks all the .inf files when a device is plugged in and finds the one with the best "rank". Would I be able to write an .inf file that makes windows pick my .inf file as the best one, and have the file point to an existing printer .dll and a custom .GPD? For example the generic text only driver or some PCL6 driver
My other question is: The PC never asks for my Device ID string that describes my printers capabilities such as manufacturer and PCL. When is the PC supposed to ask for this?
- uint_8 printer_device_id[PRINTER_DEVICE_ID_STRING_SIZE] =
- {
-
- 0x00,0x42,
- 'M',
- 'A',
- 'N',
- 'U',
- 'F',
- 'A',
- 'C',
- 'T',
- 'U',
- 'R',
- 'E',
- 'R',
- ':',
- 'X',
- 'X',
- 'X',
- 'X',
- 'X',
- 'X',
- ';',
- 'M',
- 'O',
- 'D',
- 'E',
- 'L',
- ':',
- 'P',
- 'T',
- 'I',
- '-',
- 'P',
- 'R',
- '0',
- '0',
- '1',
- ';',
- 'C',
- 'O',
- 'M',
- 'M',
- 'A',
- 'N',
- 'D',
- ' ',
- 'S',
- 'E',
- 'T',
- ':',
- 'P',
- 'C',
- 'L',
- '5',
- ';',
- 'C',
- 'L',
- 'S',
- ':',
- 'P',
- 'R',
- 'I',
- 'N',
- 'T',
- 'E',
- 'R',
- ';'
- };
Thanks