procutil.h 503 B

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