Re: Port Monitor under Windows XP

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hey Herbert,
I am trying to recollect from my memory and quick ddk
docs without opening my sources. In windows 2000/XP model, the AddPort and
AddPorttEx pointers in MONITOR2 should be NULL and are obselete so they
won't be called. The AddPortUI in the UI dll will get called which should do
a XcvData(...) to modify the printmon server dll's internal port list.
You should implement the XcvDataPort in the print mon server dll. as the
communication will happen via XcvData(...) spooler call into the printmon
server dll.

Hope this helps
Vipin

"Herbert" <Herbert@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6FFCC7E9-A9D6-44C2-87FC-CDAD22A614EE@xxxxxxxxxxxxxxxx
> Hello,
>
> thanks for your answer. Some additional information:
> Mircosoft has changed the architecture of Port Monitors under Windows
> 2000.
> If I use a Windows NT 4.0 Port Monitor everything works fine. Only the
> port
> monitor with the new architecture (since Windows 2000) shows such a
> strange
> behaviour under Windows XP. I debugged my code and it looks like the
> Windows
> spooler does not call Addport in the port monitor server dll. I do not
> know
> why?
>
> Thanks
> Herbert
>
> "Vipin" wrote:
>
>> I guess I never had this strange behaviour. I have created port monitors
>> for
>> windows 2000/XP/2003 and windows 98 without any problems. But I am not
>> sure
>> if I ever saw the behaviour you are seeing. I used to always stop/start
>> the
>> spooler during the port monitor installation via my scripts, so not sure
>> over the first time success and the later failures. I will have to go
>> back
>> and check my archives for the monitors, install and see if I see this.
>>
>> Thanks
>> Vipin
>>
>> "Herbert" <Herbert@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:9C72D45B-CC4E-42CD-B2AC-DA0C4972D241@xxxxxxxxxxxxxxxx
>> > Hello,
>> >
>> > I have implemented a Port Monitor (part of the Spooler) under Windows
>> > 2000.
>> > Under Windows 2000 the port monitor works fine. But when I install the
>> > port
>> > monitor under Windows XP I have a strange behaviour:
>> > I can create only one port for my port monitor. Trying to create
>> > another
>> > port it fails. If I want to install more ports for my port monitor I
>> > have
>> > to
>> > stop the spooler und have to start the spooler again. After that I can
>> > create
>> > one port more for my port monitor.
>> >
>> > Has already somebody seen this strange behaviour?
>> > Is this a Windows XP spooler error because under Windows 2000
>> > everything
>> > works fine?
>> >
>> > Thanks in advance for your answers
>> > Herbert
>>
>>
>>


.



Relevant Pages

  • RE: Printing a .prn file
    ... I'm running Windows XP Home ... which has all of the printer drivers stored ... BJ Language Monitor ... Check under the Local Port Monitor, make sure that the value "Driver: ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Port Monitor under Windows XP
    ... Mircosoft has changed the architecture of Port Monitors under Windows 2000. ... If I use a Windows NT 4.0 Port Monitor everything works fine. ... spooler does not call Addport in the port monitor server dll. ... > I guess I never had this strange behaviour. ...
    (microsoft.public.development.device.drivers)
  • Re: Writing a Port Monitor for 200/XP/2003
    ... Another thing you can do is step through the spooler code to get an idea of what it's ... Is it possible your monitor is initializing correctly, ... > spoolsv.exe and watch as it attaches to the port monitor. ... > that I am either doing something incorrectly in InitializePrintMonitor2 or I ...
    (microsoft.public.development.device.drivers)
  • Re: Port Monitor under Windows XP
    ... I guess I never had this strange behaviour. ... windows 2000/XP/2003 and windows 98 without any problems. ... > I have implemented a Port Monitor (part of the Spooler) under Windows ...
    (microsoft.public.development.device.drivers)
  • Port Monitor under Windows XP
    ... I have implemented a Port Monitor (part of the Spooler) under Windows 2000. ... If I want to install more ports for my port monitor I have to ...
    (microsoft.public.development.device.drivers)