Returns the path node order and separators for the specified name space.
#include <smstsapi.h>
CCODE NWSMTSGetNameSpaceTypeInfo (
UINT32 connection,
UINT32 nameSpaceType,
NWBOOLEAN *reverseOrder,
STRING_BUFFER **firstSeparator,
STRING_BUFFER **secondSeparator);
(IN) Specifies the connection information returned by NWSMTSConnectToTargetService or NWSMTSConnectToTargetServicEx.
(IN) Specifies the name space type of the name (see nameSpaceType Values)
(OUT) Points to a flag indicating if reverse order should be used:
(OUT) Points to the first separator string.
(OUT) Points to the second separator string.
See Section 9.3, Target Service Return Values for more information.
The following table lists the return values associated with the function.
Before NWSMTSGetNameSpaceTypeInfo is called, the engine must be connected to a TSA and Target Service.
The information returned by NWSMTSGetNameSpaceTypeInfo can be used to build lists for NWSM_DATA_SET_NAME_LIST and NWSM_SELECTION_LIST.
If the path order is reversed, the subordinates are to the left of their superiors. For example, "Employee.Department.Company.Country" is a reversed path.
firstSeparator and secondSeparator must point to a valid non-autovariable structure or NULL. NWSMTSGetNameSpaceTypeInfo allocates memory when a NULL is passed, or reallocates memory if the structure does not have enough space. To free the memory for the separators, call NWSMFreeString (see Storage Management Services Library).
See NWSMTSListTSResources for an example.