RpcBindingSetObject  A5LJQ9

The RpcBindingSetObject function sets the object UUID value in a binding handle.

#include <rpc.h>

RPC_STATUS RPC_ENTRY RpcBindingSetObject(

    RPC_BINDING_HANDLE  Binding,

 

    UUID *  ObjectUuid

 

   );

 

 

Parameters

Binding

Specifies the server binding into which the ObjectUuid is set.

ObjectUuid

Points to the UUID of the object serviced by the server specified in the Binding argument. ObjectUuid is a unique identifier of an object to which a remote procedure call can be made.

 

Remarks

An application calls the RpcBindingSetObject routine to associate an object UUID with a server binding handle. The set-object operation replaces the previously associated object UUID with the UUID in the ObjectUuid argument.

To set the object UUID to the nil UUID, specify a null value or the nil UUID for the ObjectUuid argument.

Return Values

Value

Meaning

RPC_S_OK

Success

RPC_S_INVALID_BINDING

Invalid binding handle

RPC_S_WRONG_KIND_OF_BINDING

Wrong kind of binding for operation

 

See Also

RpcBindingFromStringBinding, RpcBindingInqObject