NT PrnDrv / PortMon

I have a printer driver based on the NT DDK PS driver. I also have a port monitor based on the NT DDK LocalMon.

Some users of my driver will be using the NT-supplied localmon to connect to FILE:.

Some users of my driver will be using my port monitor to output elsewhere.

When a user does a Document Defaults selection, I want to display different property sheets depending on the selected port. How can the UI part of my printer driver know which port monitor is selected? Is this passed in anywhere, or do I have to do registry access?

Steve