Process3.c 371 B

123456789101112131415161718
  1. #include "pal.h"
  2. #include "pal_debug.h"
  3. #include "api.h"
  4. int main (int argc, char ** argv, char ** envp)
  5. {
  6. PAL_STR args[1] = { 0 };
  7. // Hack to differentiate parent from child
  8. if (argc == 1) {
  9. PAL_HANDLE child = DkProcessCreate(NULL, args);
  10. if (child)
  11. pal_printf("Create Process without Executable OK\n");
  12. }
  13. return 0;
  14. }