Group: Printing and Print Spooler - Library: winspool.drv
The ConfigurePort function displays the port-configuration dialog box for a port on the specified server.
How to display the port-configuration dialog box for a port on the specified server
BOOL ConfigurePort(
LPTSTR pName, // server name
HWND hWnd, // handle to parent window
LPTSTR pPortName // port name
);
DECLARE INTEGER ConfigurePort IN winspool.drv;
STRING pName,;
INTEGER hWnd,;
STRING pPortName
pName [in] Pointer to a null-terminated string that specifies the name of the server on which the specified port exists.
hWnd [in] Handle to the parent window of the port-configuration dialog box.
pPortName [in] Pointer to a null-terminated string that specifies the name of the port to be configured.
If the function succeeds, the return value is a nonzero value.