Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
705 B

  1. #include <nt.h>
  2. #include <ntrtl.h>
  3. #include <unistd.h>
  4. #include <stdio.h>
  5. #include <sys/times.h>
  6. #include "tsttmp.h" // defines DbgPrint as printf
  7. int
  8. main(int argc, char *argv[])
  9. {
  10. PCH p,t;
  11. CHAR Buf[128],c,*b;
  12. struct tms *TimeBuffer;
  13. int psxst;
  14. while(argc--){
  15. p = *argv++;
  16. t = p;
  17. while(*t++);
  18. DbgPrint("Argv --> %s\n",p);
  19. }
  20. b = getcwd(Buf,128);
  21. ASSERT(b);
  22. psxst = read(0,Buf,128);
  23. if ( psxst > 0 ) {
  24. if ( psxst == sizeof(*TimeBuffer) ) {
  25. DbgPrint("time buffer received\n");
  26. } else {
  27. c = Buf[0];
  28. DbgPrint("hello_main: Pipe Read %s\n",Buf,c);
  29. }
  30. }
  31. return 1;
  32. }