GetISOTypeFromPlatformType
TheGetISOTypeFromPlatformTypemethod returns the ISO type corresponding to the specified platform-specific type.
ODValueType GetISOTypeFromPlatformType ( in ODPlatformType platformType, in ODPlatformTypeSpace typeSpace);
platformType- A 32-bit wrapper for the platform-specific type. On the Mac OS platform, this type is identical to the
ScrapTypeorOSTypetypes (a four-character code).typeSpace- A 32-bit value used to specify the type of a platform-specific structure identifying a type space (data or file). The value of
typeSpacemust be one of the following:kODPlatformDataTypeorkODPlatformFileType.- return value
- The corresponding ISO type.
DISCUSSION
The valuekODPlatformDataTypefor thetypeSpaceparameter indicates the native operating system scrap type. The valuekODPlatformFileTypeindicates the native operating system file type.Your part calls this method. OpenDoc does not use platform types (for example,
OSTypeon the Mac OS). Therefore, to interoperate between OpenDoc and non-OpenDoc systems, platform types and ISO types need to be translated from one kind to the other.It is your responsibility to deallocate the returned value type when it is no longer needed.
SEE ALSO
TheODPlatformTypeSpacetype (page 920).
TheODValueTypetype (page 904).
TheODStorageSystem::CreatePlatformTypeListmethod (page 661).
TheODTranslation::GetPlatformTypeFromISOTypemethod (page 792).
"Translation" on page 333 in OpenDoc Programmer's Guide.