Jump to content

Print port monitor


Recommended Posts

Hello

I writing a port monitor , that that will provide one port, that is not connected with physicall bus or port. it is a virtual port, it makes nothing.this monitor dll exports initialmonitor, addport, dellport, configureport, stardocport,enddocport,enumports,openport,closeport funcions. i did put addresses of these function in MONITOREX struct(returnet by intializemonitor function). Enumports only returns port info struct ,that describes port, provided by this monitor(virtual port).Addport only displays message"this mon doesnot support adding ports", the same delete port an configure port .I wriitenn this port monitor , i installed it succesfully(by calling addMonitor funcion), i installed printer on this port i can print documents on this port, but there is only one problem and i dont know where i made mistake.

Problem:

all works ok but if i remove last printer associated with this port, the spooler should call monitors closePort function but it didnt. i dont know why. ...?

And when i want to remewe this monitor by calling delletemonitor, it throws error - print monitor in use.

Can you help my? what did i forget?

please help me

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy