ConfigurePort


BOOL ConfigurePort(
    LPTSTR  pName,
    HWND    hWnd,
    LPTSTR  pPortName
);

A port management function that configures the specified port. If the port is a COM port, configures the baud rate. If the port is a parallel port, configures retry parameters. If the port is a network port, may change the port address.

pName

Points to a zero-terminated string that names the server on which the port named in the pPortName parameter exists.

hWnd

Handle to the parent window of the port-configuration dialog.

pPortName

Points to a zero-terminated string that names the port to be configured.


The ConfigurePort function is called by the spooler when the user chooses the Settings button from the Properties dialog. This enables your port monitor to present a user interface that allows a user to configure one of the ports maintained by your port monitor.