procutil.h 524 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef BB_STD_PROCUTIL_H
  2. #define BB_STD_PROCUTIL_H
  3. #if _WIN32
  4. #include <windows.h>
  5. #include <tlhelp32.h>
  6. #if !_MSC_VER
  7. extern "C" WINBASEAPI WINBOOL WINAPI CancelIoEx( HANDLE hFile,LPOVERLAPPED lpOverlapped );
  8. #endif
  9. namespace bbProcUtil{
  10. int TerminateProcessGroup( HANDLE prochandle,int exitCode );
  11. }
  12. #else
  13. #include <stdlib.h>
  14. #include <string.h>
  15. #include <sys/ioctl.h>
  16. #include <unistd.h>
  17. #include <sys/wait.h>
  18. #include <signal.h>
  19. namespace bbProcUtil{
  20. char **makeargv( const char *cmd );
  21. }
  22. #endif
  23. #endif