printing port monitor help needed
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

