 |
DeletePort ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Displays a dialog box that allows the user to delete a port name. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL DeletePort(
LPTSTR pName, // server name
HWND hWnd, // handle to parent window
LPTSTR pPortName // port name
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER DeletePort IN winspool.drv;
STRING pName,;
INTEGER hWindow,;
STRING pPortName
|
 |
 |
 |
| Parameters: |
 |
pName
[in] Pointer to a zero-terminated string that specifies the name of the server for which the port should be deleted. If this parameter is NULL, a local port is deleted.
hWnd
[in] Handle to the parent window of the port-deletion dialog box.
pPortName
[in] Pointer to a zero-terminated string that specifies the name of the port that should be deleted.
|
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is a nonzero value. |
 |
 |
| My comment: |
 |
The DeletePort function returns an error if a printer is currently connected to the specified port.
The caller of the DeletePort function must have SERVER_ACCESS_ADMINISTER access to the server to which the port is connected.
See also: AddPort, EnumPorts. |
 |
 |
| Word Index links for the DeletePort : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2005-09-22 12:36:13 | | Modified: | 2005-12-19 17:02:38 | Visited in last 7 days: 14 |