This function should be used to register a variable type. The return value is the serial number of the type that should later be used to reference the type.
int memory_RegisterType(pMemoryObject pMo,
unsigned long SizeOfThisType
The argument of the function is the size of the type in terms of bytes. Usually this
is calculated using the C structure sizeof.
If the type can not be registered -1 is returned.