RpcServerInqDefaultPrincName

The RpcServerInqDefaultPrincName function obtains the default principal name from the server.

This function is supported only by Windows 95.

#include <rpc.h>
RPC_STATUS RPC_ENTRY RpcServerInqDefaultPrincName( 
  unsigned long  AuthnSvc,   
  RPC_CHAR * *  PrincName,   
);
 

Parameters

AuthnSvc
Specifies an authentication service to use when the server receives a request for a remote procedure call.
PrincName
Points to the principal name to use for the server when authenticating remote procedure calls using the service specified by the AuthnSvc argument. The content of the name and its syntax are defined by the authentication service in use.

Remarks

In a NetWare-only environment, server application calls the RpcServerInqDefaultPrincName routine to obtain the name of the NetWare server when authenticated RPC is required. The value obtained from this routine is then passed to RpcServerRegisterAuthInfo.

Return Values

Value Meaning
RPC_S_OK Success
RPC_S_OUT_OF_MEMORY Insufficient memory to complete the operation

See Also

RpcBindingSetAuthInfo, RpcServerRegisterAuthInfo