If you can make a successful connection to the RPC Broker server, and create an application context, you can execute any RPCs registered to your context.
To execute RPCs from your C++ program:
char Value [1024];
RPCInst.RPCBPropSet("RemoteProcedure","XWB GET VARIABLE VALUE");
a. A value of 0 for parameter 1 denotes the integer index of the Param node being set (Param[0]).
b. A value of reference for parameter 2 denotes the setting for the equivalent of Param[0].PType. This uses the enumerated values for PType declared in the header file.
c. A value of "DUZ" for parameter 3 denotes that the equivalent of Param[0].Value is "DUZ".
RPCInst.RPCBParamSet(0, reference, "DUZ");
RPCInst.RPCBCall(Value);
The return value from the RPC is returned in the first parameter (in this case, the Value character buffer).