Generates an Resource Management Service (RMS) reference based on its fully qualified name (FQN)
#include <nwdp_res.h>
N_EXTERN_LIBRARY (nint) NWDPResCreateRefBasedOnFQN (
NWDPAccessorRef accessorRef,
pNWDPNSrvFQN brokerFqnPtr,
pNWDPResRef resRefPtr);
(IN) Specifies the NWDPAccessorData structure whose fields are accessed by using the provided error macros.
(IN) Points to the NWDPNSrvFQN structure containing the FQN of the broker object provided by the name service.
(OUT) Points to the NWDPResRef, the resource reference.
0x00000000 |
N_SUCCESS |
0xFFFFFFFE |
NWDP_RC_INVALID_ACCESSOR |
0xFFFFFFFF |
N_FAILURE |
Before calling NWDPResCreateRefBasedOnFQN, you must call NWDPNSrvSetNativeNDSContext once per application to assign a contextHandle to accessorRef.
If the accessorRef parameter returns NWDP_EC_RESMAN_RESULT, the otherError field in the accessorRef parameter contains an error code from the Resource Manager. This error code correlates to the enumeration values found in the nwdp_err.h file.
If NWDPResCreateRefBasedOnFQN returns N_FAILURE, the NWDPLibErrorMac (accessorRef) contains the following:
NWDPNSrvSetNativeNDSContext, NWDPResCreateRefBasedOnAddr, NWDPResCreateRefBasedOnSrsSAP