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

#include <nt.h>
#include <ntrtl.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/times.h>
#include "tsttmp.h" // defines DbgPrint as printf
int
main(int argc, char *argv[])
{
PCH p,t;
CHAR Buf[128],c,*b;
struct tms *TimeBuffer;
int psxst;
while(argc--){
p = *argv++;
t = p;
while(*t++);
DbgPrint("Argv --> %s\n",p);
}
b = getcwd(Buf,128);
ASSERT(b);
psxst = read(0,Buf,128);
if ( psxst > 0 ) {
if ( psxst == sizeof(*TimeBuffer) ) {
DbgPrint("time buffer received\n");
} else {
c = Buf[0];
DbgPrint("hello_main: Pipe Read %s\n",Buf,c);
}
}
return 1;
}