RpcNsMgmtEntryCreateA function (rpcnsi.h)
The RpcNsMgmtEntryCreate function creates a name service–database entry.
Syntax
RPC_STATUS RpcNsMgmtEntryCreateA(
unsigned long EntryNameSyntax,
RPC_CSTR 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.
Note
The rpcnsi.h header defines RpcNsMgmtEntryCreate as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | rpcnsi.h (include Rpc.h) |
Library | Rpcns4.lib |
DLL | Rpcns4.dll |