Click here to Skip to main content
15,921,210 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhy not? Pin
Larsson10-Nov-06 5:46
Larsson10-Nov-06 5:46 
AnswerRe: Why not? Pin
Mark Salsbery10-Nov-06 5:49
Mark Salsbery10-Nov-06 5:49 
GeneralRe: Why not? Pin
Larsson10-Nov-06 6:04
Larsson10-Nov-06 6:04 
GeneralRe: Why not? Pin
Mark Salsbery10-Nov-06 6:13
Mark Salsbery10-Nov-06 6:13 
GeneralRe: Why not? Pin
Larsson10-Nov-06 6:15
Larsson10-Nov-06 6:15 
GeneralRe: Why not? Pin
Dominik Reichl10-Nov-06 6:15
Dominik Reichl10-Nov-06 6:15 
AnswerRe: Why not? Pin
Hamid_RT10-Nov-06 6:24
Hamid_RT10-Nov-06 6:24 
QuestionUSB Printer Registry Association [modified] Pin
switang10-Nov-06 5:43
switang10-Nov-06 5:43 
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 | :confused:

Thanks.


-- modified at 14:46 Friday 10th November, 2006

BTW: You're doing good if you figure this one out. Big Grin | :-D
AnswerRe: USB Printer Registry Association Pin
VonHagNDaz10-Nov-06 9:21
VonHagNDaz10-Nov-06 9:21 
GeneralRe: USB Printer Registry Association Pin
switang17-Nov-06 3:44
switang17-Nov-06 3:44 
QuestionScrollbars Menu Pin
Waldermort10-Nov-06 5:25
Waldermort10-Nov-06 5:25 
AnswerRe: Scrollbars Menu Pin
Mark Salsbery10-Nov-06 5:45
Mark Salsbery10-Nov-06 5:45 
GeneralRe: Scrollbars Menu Pin
Waldermort10-Nov-06 5:59
Waldermort10-Nov-06 5:59 
GeneralRe: Scrollbars Menu Pin
Mark Salsbery10-Nov-06 6:22
Mark Salsbery10-Nov-06 6:22 
GeneralRe: Scrollbars Menu Pin
Waldermort10-Nov-06 6:42
Waldermort10-Nov-06 6:42 
GeneralRe: Scrollbars Menu Pin
Mark Salsbery10-Nov-06 7:18
Mark Salsbery10-Nov-06 7:18 
GeneralRe: Scrollbars Menu Pin
Waldermort10-Nov-06 7:35
Waldermort10-Nov-06 7:35 
GeneralRe: Scrollbars Menu Pin
Mark Salsbery10-Nov-06 8:20
Mark Salsbery10-Nov-06 8:20 
GeneralRe: Scrollbars Menu Pin
Waldermort10-Nov-06 8:26
Waldermort10-Nov-06 8:26 
GeneralRe: Scrollbars Menu Pin
Mark Salsbery10-Nov-06 9:01
Mark Salsbery10-Nov-06 9:01 
GeneralRe: Scrollbars Menu Pin
Waldermort10-Nov-06 9:15
Waldermort10-Nov-06 9:15 
QuestionRe: Scrollbars Menu Pin
Waldermort10-Nov-06 9:22
Waldermort10-Nov-06 9:22 
GeneralRe: Scrollbars Menu Pin
Waldermort11-Nov-06 6:50
Waldermort11-Nov-06 6:50 
GeneralRe: Scrollbars Menu Pin
Mark Salsbery11-Nov-06 7:03
Mark Salsbery11-Nov-06 7:03 
JokeOMG Pin
Monty210-Nov-06 18:42
Monty210-Nov-06 18:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.