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:

  1. Call the print spooler's OpenPrinter function, which causes the XcvOpenPort function in the port monitor server DLL to be called.

  2. 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.

  3. 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.