Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

RpcBindingToStringBinding function

The RpcBindingToStringBinding function returns a string representation of a binding handle.

Syntax


RPC_STATUS RPC_ENTRY RpcBindingToStringBinding(
  RPC_BINDING_HANDLE Binding,
  unsigned char **StringBinding
);

Parameters

Binding

Client or server binding handle to convert to a string representation of a binding handle.

StringBinding

Returns a pointer to a pointer to the string representation of the binding handle specified in the Binding parameter.

Specify a null value to prevent RpcBindingToStringBinding from returning the StringBinding parameter. In this case, the application does not call the RpcStringFree function.

Return value

ValueMeaning
RPC_S_OK

The call succeeded.

RPC_S_INVALID_BINDING

The binding handle was invalid.

 

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

Remarks

The RpcBindingToStringBinding function converts a client or server binding handle to its string representation.

The RPC run-time library allocates memory for the string returned in the StringBinding parameter. The application is responsible for calling the RpcStringFree function to deallocate that memory.

If the binding handle in the Binding parameter contained a nil object UUID, the object UUID field is not included in the returned string.

To parse the returned StringBinding parameter, call the RpcStringBindingParse function.

Note  To query a client's address, an application starts by calling the RpcBindingServerFromClient function to obtain a partially bound server binding handle. The server binding handle can be used to obtain a string binding by invoking RpcBindingToStringBinding. The server can then call RpcStringBindingParse to extract the client's network address from the string binding.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Rpcdce.h (include Rpc.h)

Library

Rpcrt4.lib

DLL

Rpcrt4.dll

Unicode and ANSI names

RpcBindingToStringBindingW (Unicode) and RpcBindingToStringBindingA (ANSI)

See also

RpcBindingFromStringBinding
RpcStringBindingParse
RpcStringFree

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.