Configure a port
Configuring a port consists of modifying a port monitor server DLL's stored configuration information for a previously-added port.
When an application calls the print spooler's ConfigurePort function, the ConfigurePort function calls the ConfigurePortUI function contained in the port monitor UI DLL of the appropriate port monitor.
The port monitor UI DLL's ConfigurePortUI function should perform the following operations:
Call the print spooler's OpenPrinter function, which causes the XcvOpenPort function in the port monitor server DLL to be called.
Call the print spooler's XcvData function one or more times, to transfer configuration information between the UI DLL and the server DLL. The XcvData function calls the server DLL's XcvDataPort function. The ConfigurePortUI function typically obtains configuration information from the user by displaying dialog boxes.
Call the print spooler's ClosePrinter function, which causes the XcvClosePort function in the port monitor server DLL to be called.
For more information about these operations, see the description of ConfigurePortUI. Also see Storing Port Configuration Information.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for