sp_groupProcess.h 874 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef SP_GROUPPROCESS_H
  2. #define SP_GROUPPROCESS_H
  3. #pragma once
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef struct spProcessT
  8. {
  9. HANDLE read_pipe;
  10. HANDLE write_pipe;
  11. HANDLE child_readPipe;
  12. HANDLE child_writePipe;
  13. HANDLE process_Handle;
  14. int pid;
  15. int group;
  16. }sp_process_t;
  17. int getNewGuid(char *guidBuffer);
  18. sp_process_t* findGroupProcessInfo(int group, const char *entityName);
  19. int checkGroupProcesInfo(int group, const char *entityName);
  20. int AddGroupProcessInfo(int group, sp_process_t *curProcess, const char *entityName);
  21. int RemoveGroupProcessInfo(int group, const char *entityName);
  22. int startModByPipe(const sp_process_t* curProcess, char *paramStr);
  23. int killModByPipe(const sp_process_t *curProcess, char *paramStr);
  24. int queryModByPipe(const sp_process_t* curProcess, const char *paramStr, char dstParam[10][MAX_PATH]);
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif