实现了CStateRecord::WriteParamToDevice