Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.26 KB

ConfigurePort.md

File metadata and controls

53 lines (36 loc) · 1.26 KB

Home

Function name : ConfigurePort

Group: Printing and Print Spooler - Library: winspool.drv


The ConfigurePort function displays the port-configuration dialog box for a port on the specified server.


Code examples:

How to display the port-configuration dialog box for a port on the specified server

Declaration:

BOOL ConfigurePort(
  LPTSTR pName,      // server name
  HWND hWnd,         // handle to parent window
  LPTSTR pPortName   // port name
);  

FoxPro declaration:

DECLARE INTEGER ConfigurePort IN winspool.drv;
	STRING  pName,;
	INTEGER hWnd,;
	STRING  pPortName
  

Parameters:

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.


Return value:

If the function succeeds, the return value is a nonzero value.