Knowledge Base

DOC: AddPort, ConfigurePort, DeletePort Fail Remotely

Article ID: 131223

Article Last Modified on 11/21/2006


APPLIES TO


This article was previously published under Q131223
3.50 3.51 | 4.00 WINDOWS NT | WINDOWS kbprint kbdocerr

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 KB131223