single_instance.h 1.2 KB

12345678910111213141516171819202122232425
  1. /**************************************************************************************************
  2. ** **
  3. ** 文件名称: single_instance.h **
  4. ** 版权所有: CopyRight @ LEON WorkStudio CO.LTD. 2017 **
  5. ** 文件描述: 判断系统中是否已经存在该进程的实例 **
  6. ** =========================================================================================== **
  7. ** 创建信息: | 2017-9-14 | LEON | 创建本模块 **
  8. ** =========================================================================================== **
  9. ** 修改信息: 单击此处添加.... **
  10. **************************************************************************************************/
  11. #ifndef SINGLE_INSTANCE_H
  12. #define SINGLE_INSTANCE_H
  13. #ifdef __cplusplus
  14. extern "C"
  15. {
  16. #endif
  17. int proc_is_exist(const char *procname);
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif