Corrected platformType return type to DeviceHardwarePlatformType. Corrected generalPlatform return value for unknown platform to DeviceHardwareGeneralPlatform_Unknown.