Given the Typename or ID of an McObjects Type, the method returns the corresponding ID or Typename, respectively. The Type ID is either one of the predefined mcobjTypeEnum values or the value returned by a call to the RegisterType or RegisterInterfaceClassFactory methods.
If the name passed in cannot be found, then mcobjTypeUNKNOWN (zero) is returned as the type code. If an unknown type ID is passed in, ILLEGAL TYPE is returned as the name, while mcobjTypeUNKNOWN results in UNDEFINED TYPE.
If the varNameOrID is given as a name, that type name must be within the scope of the current default Namespace, unless the actual namespace is supplied via the :: syntax.