USB Printer Registry Association [modified]
-
Here's what I need to associate, you will need a printer installed to see similar results as mine. ASSOCIATION_1 ------------------------------------------------------------------------------ - Go to here: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\usbprint\Enum] If you have a printer installed it should show up here. The data for value "0" is a reg location under [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum]. I.E. - "0"="USB\\Vid_04b8&Pid_0007\\LFP26060525212949-" The last part of the data of "0" is the printer usb serial number (LFP26060525212949-) to my knowledge. This key/serial number is the first part of the association that is needed. So ASSOCIATION_1: "LFP26060525212949-" ASSOCIATION_2 ----------------------------------------------------------------------------------------- - Go to here: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\PrinterName] PrinterName would be the name of the printer(s) installed, as seen in "Printers and Faxes". So ASSOCIATION_2: "PrinterName" (I.E. Epson 4800). FYI: The DeviceInstanceId value's data under [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\PrinterName\PnPData] for the particular printer is a reg location under [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum]. So if I could associate a printer's usb serial number to its name in "Printers and Faxes". That would be "Fantastic". I've tried several ways to no avail. Really a virtual printer port name to usb serial number match would work too. I assume windows does this association somehow... :confused: Thanks. -- modified at 14:46 Friday 10th November, 2006 BTW: You're doing good if you figure this one out. :-D
-
Here's what I need to associate, you will need a printer installed to see similar results as mine. ASSOCIATION_1 ------------------------------------------------------------------------------ - Go to here: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\usbprint\Enum] If you have a printer installed it should show up here. The data for value "0" is a reg location under [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum]. I.E. - "0"="USB\\Vid_04b8&Pid_0007\\LFP26060525212949-" The last part of the data of "0" is the printer usb serial number (LFP26060525212949-) to my knowledge. This key/serial number is the first part of the association that is needed. So ASSOCIATION_1: "LFP26060525212949-" ASSOCIATION_2 ----------------------------------------------------------------------------------------- - Go to here: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\PrinterName] PrinterName would be the name of the printer(s) installed, as seen in "Printers and Faxes". So ASSOCIATION_2: "PrinterName" (I.E. Epson 4800). FYI: The DeviceInstanceId value's data under [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\PrinterName\PnPData] for the particular printer is a reg location under [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum]. So if I could associate a printer's usb serial number to its name in "Printers and Faxes". That would be "Fantastic". I've tried several ways to no avail. Really a virtual printer port name to usb serial number match would work too. I assume windows does this association somehow... :confused: Thanks. -- modified at 14:46 Friday 10th November, 2006 BTW: You're doing good if you figure this one out. :-D
Yeah, I've had a similar problem. I need to come up with a way to associate a USB port to a specific printer when multiple printers of the exact same type are plugged into the same machine. I've tried going through the registry, but after searching and diving through it many times I couldn't find any correlation. Is this even possible? It appears that WinBlows can do it, but are they using some sort of super secret magic or a printer fairy to get this done?
I win because I have the most fun in life...
-
Here's what I need to associate, you will need a printer installed to see similar results as mine. ASSOCIATION_1 ------------------------------------------------------------------------------ - Go to here: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\usbprint\Enum] If you have a printer installed it should show up here. The data for value "0" is a reg location under [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum]. I.E. - "0"="USB\\Vid_04b8&Pid_0007\\LFP26060525212949-" The last part of the data of "0" is the printer usb serial number (LFP26060525212949-) to my knowledge. This key/serial number is the first part of the association that is needed. So ASSOCIATION_1: "LFP26060525212949-" ASSOCIATION_2 ----------------------------------------------------------------------------------------- - Go to here: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\PrinterName] PrinterName would be the name of the printer(s) installed, as seen in "Printers and Faxes". So ASSOCIATION_2: "PrinterName" (I.E. Epson 4800). FYI: The DeviceInstanceId value's data under [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\PrinterName\PnPData] for the particular printer is a reg location under [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum]. So if I could associate a printer's usb serial number to its name in "Printers and Faxes". That would be "Fantastic". I've tried several ways to no avail. Really a virtual printer port name to usb serial number match would work too. I assume windows does this association somehow... :confused: Thanks. -- modified at 14:46 Friday 10th November, 2006 BTW: You're doing good if you figure this one out. :-D