swprogress.h 745 B

123456789101112131415161718192021222324252627282930313233
  1. /************************************************************************
  2. * AUTHOR: NiuJiuRu
  3. * FILENAME: swprogress.h
  4. * CONTENT: 进程
  5. * NOTE:
  6. * HISTORY:
  7. * 1, [2010-09-16] created by NiuJiuRu
  8. ***********************************************************************/
  9. #ifndef __SWPROGRESS_H__
  10. #define __SWPROGRESS_H__
  11. #ifdef __cplusplus
  12. extern "C"
  13. {
  14. #endif
  15. /* 得到当前进程的PID */
  16. int xGetCurrentProcessId();
  17. /* 得到当前进程所对应的命令文件名 */
  18. char *sw_progress_getCMD(char *cmd);
  19. /* 根据进程ID杀死进程 */
  20. void sw_progress_killByPID(int pid);
  21. /* 根据命令文件名杀死进程 */
  22. void sw_progress_killByCMD(const char *cmd, int ignorePID);
  23. #ifdef __cplusplus
  24. }
  25. #endif
  26. #endif /* __SWPROGRESS_H__ */