DOC: AddPort, ConfigurePort, DeletePort Fail Remotely

ID: Q131223

3.50 3.51 | 4.00 WINDOWS NT | WINDOWS kbprint kbdocerr
The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API), used with:
    • Microsoft Windows NT, versions 3.5, 3.51
    • Microsoft Windows 95


SUMMARY

Using AddPort, ConfigurePort, or DeletePort with the Universal Naming Convention (UNC) name of a remote server as the first parameter results in a return value of FALSE. This indicates that a failure has occurred. The error returned by GetLastError is ERROR_NOT_SUPPORTED. If the first parameter is the UNC name of the local machine or NULL, the functions succeed. Calls to remote servers via AddPort, ConfigurePort and DeletePort are not supported. The documentation gives the impression that the UNC name for a remote server is permissible as the first parameter. Use the UNC name to the local server or NULL as the first parameter.


MORE INFORMATION

These functions display a dialog associated with the hWnd that is supplied in the second parameter. Because the call displays a dialog box and requires a handle to a window in the second parameter, it is only supported locally.

Additional query words: 4.00

Keywords : kbdocfix kbNTOS350 kbNTOS351 kbSDKWin32 kbWinOS95 kbDSupport
Version : winnt:3.5,3.51
Platform : winnt
Issue type :


Last Reviewed: July 7, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.