Microsoft KB Archive/131223

{|
 * width="100%"|

DOC: AddPort, ConfigurePort, DeletePort Fail Remotely

 * }

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 Server versions 3.5, 3.51
 * Microsoft Windows NT Workstation 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 kbOSWinNT350 kbOSWinNT351 kbSDKWin32 kbOSWin95 kbDSupport

Issue type :

Technology : kbAudDeveloper kbWin32sSearch kbWin32API