RpcNsMgmtEntryDelete function
The RpcNsMgmtEntryDelete function deletes a name service–database entry.
Syntax
RPC_STATUS RPC_ENTRY RpcNsMgmtEntryDelete( unsigned long EntryNameSyntax, unsigned char *EntryName );
Parameters
- EntryNameSyntax
-
Syntax of EntryName.
To use the syntax specified in the registry value entry HKEY_LOCAL_MACHINE\Software\Microsoft\Rpc\NameService\DefaultSyntax, provide a value of RPC_C_NS_SYNTAX_DEFAULT.
- EntryName
-
Pointer to the name of the entry to delete.
Return value
| Value | Meaning |
|---|---|
|
The call succeeded. |
|
The name syntax is invalid. |
|
The name syntax is not supported. |
|
The name is incomplete. |
|
The name-service entry was not found. |
|
The name service is unavailable. |
|
Not an RPC entry. |
Remarks
Management applications use the RpcNsMgmtEntryDelete function only when an entry is no longer needed—for example, when a server is being permanently removed from service.
Because name-service databases are designed to be relatively stable, frequent use of RpcNsMgmtEntryDelete in client or server applications can result in performance problems. Creating and deleting entries in client or server applications causes the name-service database to repeatedly remove and replace the same entry. This can lead to performance problems in replicated name-service databases.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
RpcNsMgmtEntryDeleteW (Unicode) and RpcNsMgmtEntryDeleteA (ANSI) |
See also