RpcNsMgmtEntryCreate function
The RpcNsMgmtEntryCreate function creates a name service–database entry.
Syntax
RPC_STATUS RPC_ENTRY RpcNsMgmtEntryCreate( 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 create.
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 already exists. |
|
The name service is unavailable. |
Remarks
The RpcNsMgmtEntryCreate function creates an entry in the name-service database. A management application can call RpcNsMgmtEntryCreate to create a name service–database entry for use by another application that does not itself have the necessary name service–database privileges to create an entry.
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 |
RpcNsMgmtEntryCreateW (Unicode) and RpcNsMgmtEntryCreateA (ANSI) |
See also