Re: 2 USB questions
From: Mike (Mike_at_discussions.microsoft.com)
Date: 11/04/04
- Next message: Tim D: "RE: UNIDRV add custom paper sizes"
- Previous message: Masao Uebayashi: "Re: DDKBuild ISSUE with WINDDK..."
- In reply to: Doron Holan [MS]: "Re: 2 USB questions"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 4 Nov 2004 04:54:05 -0800
In my language monitor I poll the printer while it doesn't have a job to
print so we can see the status of the printer. It works very well for
printers on COM and LPT but for USB I can't tell which printer I'm polling.
I tried using the functions WritePort, ReadPort in the language monitor, but
when there are no jobs to print, the ports are closed. So I wrote special
functions to talk directly to the printer. I have separate functions for
LPT, COM and USB since the communication works differently on each. The USB
functions worked fine until I tried it with a Hub, then I realized that it
was just luck that I was polling the right printer. I was relying on the
DevicePath string that I got with the SetupDi functions.
"Doron Holan [MS]" wrote:
> you tell which is which only if the device supports serial numbers. why do
> you want to determine which port it is attached to? USB001 etc etc are only
> generated for usb printers (that is a port monitor symbolic name)
>
> d
>
> --
> Please do not send e-mail directly to this alias. this alias is for
> newsgroup purposes only.
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
> "Mike" <Mike@discussions.microsoft.com> wrote in message
> news:8CCA300F-7710-4FF4-8B48-662EA78347E4@microsoft.com...
> > How can I determine which port my device is attached to (USB001,
> > USB002,,)?
> > and I have two or more identical devices attached to a host. How can I
> > tell
> > which is which?
> > --
> > Mike
>
>
>
- Next message: Tim D: "RE: UNIDRV add custom paper sizes"
- Previous message: Masao Uebayashi: "Re: DDKBuild ISSUE with WINDDK..."
- In reply to: Doron Holan [MS]: "Re: 2 USB questions"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|