Export (0) Print
Expand All
Expand Minimize

RpcNsProfileDelete function

The RpcNsProfileDelete function deletes a profile attribute.

Note  This function is not supported on Windows Vista and later operating systems.

Syntax


RPC_STATUS RPC_ENTRY RpcNsProfileDelete(
  unsigned long ProfileNameSyntax,
  unsigned char *ProfileName
);

Parameters

ProfileNameSyntax

Integer value indicating the syntax of the next parameter, ProfileName.

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.

ProfileName

Pointer to the name of the profile to delete.

Return value

ValueMeaning
RPC_S_OK

The call succeeded.

RPC_S_INVALID_NAME_SYNTAX

The name syntax is invalid.

RPC_S_UNSUPPORTED_NAME_SYNTAX

The name syntax is not supported.

RPC_S_INCOMPLETE_NAME

The name is incomplete.

RPC_S_ENTRY_NOT_FOUND

The name-service entry was not found.

RPC_S_NAME_SERVICE_UNAVAILABLE

The name service is unavailable.

 

Note  For a list of valid error codes, see RPC Return Values.

Remarks

The RpcNsProfileDelete function deletes the profile attribute from the specified name-service entry (ProfileName). Neither ProfileName nor the entry names included as members in each profile element are deleted.

Note  Use RpcNsProfileDelete cautiously; deleting a profile can have the unwanted effect of breaking a hierarchy of profiles.

Note  This DCE function is not supported by Microsoft Locator. Windows NT and Windows 2000 support the use of this function with Cell Directory Service (CDS) only.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Rpcnsi.h (include Rpc.h)

Library

Rpcns4.lib

DLL

Rpcns4.dll

Unicode and ANSI names

RpcNsProfileDeleteW (Unicode) and RpcNsProfileDeleteA (ANSI)

See also

RpcNsProfileEltAdd
RpcNsProfileEltRemove

 

 

Community Additions

ADD
Show:
© 2014 Microsoft