The RpcNsGroupDelete function deletes a group attribute.
#include <rpc.h>
RPC_STATUS RPC_ENTRY RpcNsGroupDelete(
unsigned long GroupNameSyntax,
unsigned char * GroupName
);
To use the syntax specified in the registry value HKEY_LOCAL_MACHINE\Software\Microsoft\Rpc\NameService\
DefaultSyntax, provide a value of RPC_C_NS_SYNTAX_DEFAULT.
Note This DCE function is not supported by the Microsoft Locator.
The RpcNsGroupDelete routine deletes the group attribute from the specified name-service database entry.
Neither the specified name-service database entry nor the group members are deleted.
Value | Meaning |
---|---|
RPC_S_OK | Success |
RPC_S_INVALID_NAME_SYNTAX | Invalid name syntax |
RPC_S_UNSUPPORTED_NAME_SYNTAX | Unsupported name syntax |
RPC_S_INCOMPLETE_NAME | Incomplete name |
RPC_S_ENTRY_NOT_FOUND | Name-service entry not found |
RPC_S_NAME_SERVICE_UNAVAILABLE | Name service unavailable |
Windows NT: Yes
Windows CE: Unsupported.
Header: Declared in rpcnsi.h.
Import Library: Link with rpcns4.lib.
RpcNsGroupMbrAdd, RpcNsGroupMbrRemove