1e41f4b71Sopenharmony_ci# hiappevent_param.h 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci 4e41f4b71Sopenharmony_ci## 概述 5e41f4b71Sopenharmony_ci 6e41f4b71Sopenharmony_ci定义所有预定义事件的参数名称。 7e41f4b71Sopenharmony_ci 8e41f4b71Sopenharmony_ci除了与特定应用关联的自定义事件之外,您还可以使用预定义事件进行打点。 9e41f4b71Sopenharmony_ci 10e41f4b71Sopenharmony_ci示例代码: 11e41f4b71Sopenharmony_ci 12e41f4b71Sopenharmony_ci``` 13e41f4b71Sopenharmony_ciParamList list = OH_HiAppEvent_CreateParamList(); 14e41f4b71Sopenharmony_ciOH_HiAppEvent_AddInt32Param(list, PARAM_USER_ID, 123); 15e41f4b71Sopenharmony_ciint res = OH_HiAppEvent_Write("user_domain", EVENT_USER_LOGIN, BEHAVIOR, list); 16e41f4b71Sopenharmony_ciOH_HiAppEvent_DestroyParamList(list); 17e41f4b71Sopenharmony_ci``` 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ci**引用文件:** <hiappevent/hiappevent_param.h> 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ci**起始版本:** 8 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ci**相关模块:**[HiAppEvent](_hi_app_event.md) 24e41f4b71Sopenharmony_ci 25e41f4b71Sopenharmony_ci 26e41f4b71Sopenharmony_ci## 汇总 27e41f4b71Sopenharmony_ci 28e41f4b71Sopenharmony_ci 29e41f4b71Sopenharmony_ci### 宏定义 30e41f4b71Sopenharmony_ci 31e41f4b71Sopenharmony_ci| 名称 | 描述 | 32e41f4b71Sopenharmony_ci| -------- | -------- | 33e41f4b71Sopenharmony_ci| [PARAM_USER_ID](_hi_app_event.md#param_user_id) "user_id" | 用户ID。 | 34e41f4b71Sopenharmony_ci| [PARAM_DISTRIBUTED_SERVICE_NAME](_hi_app_event.md#param_distributed_service_name) "ds_name" | 分布式服务名称。 | 35e41f4b71Sopenharmony_ci| [PARAM_DISTRIBUTED_SERVICE_INSTANCE_ID](_hi_app_event.md#param_distributed_service_instance_id) "ds_instance_id" | 分布式服务实例ID。 | 36