NetServerComputerNameDel function
The NetServerComputerNameDel function causes the specified server to cease supporting the emulated server name set by a previous call to the NetServerComputerNameAdd function. The function does this by unbinding network transports from the emulated name.
Syntax
NET_API_STATUS NetServerComputerNameDel( _In_ LPWSTR ServerName, _In_ LPWSTR EmulatedServerName );
Parameters
- ServerName [in]
-
Pointer to a string that specifies the DNS or NetBIOS name of the remote server on which the function is to execute. If this parameter is NULL, the local computer is used.
- EmulatedServerName [in]
-
Pointer to a null-terminated character string that contains the emulated name the server should stop supporting. The server continues to support all other server names it was supporting.
Return value
If the function succeeds, the return value is NERR_Success.
If the function fails, the return value can be one of the following error codes.
| Return code | Description |
|---|---|
|
The user does not have access to the requested information. |
|
The specified parameter is invalid. |
|
Insufficient memory is available. |
|
The share name does not exist. |
Remarks
Only members of the Administrators or Server Operators local group can successfully execute the NetServerComputerNameDel function.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
- Network Management Overview
- Network Management Functions
- Server Functions
- NetServerComputerNameAdd
- NetServerTransportEnum
- NetServerTransportAdd
- NetServerTransportAddEx