Hello everyone,
I have a litle problem to solve. I have a code write in c that uses the parallel port to permit communication from one Pc to other over the parallel port. But that code has been done in Linux and now i need to do the same thing in Windows...
The problem is that i can't find any library in Windows that permit the communication over the parallel port.
And i have other problem... here is a exemple of the code in Linux
/*Get access to the ports starting with DATA*/
if (ioperm(DATA,3,1)) {perror("ioperm");exit(-1);}
while (1) {
error=0;
control=DHIZ; /*control in known state: HiZ, NACK*/
outb(control,CONTROL);
/*printf("waiting for rdy assert\n");*/
while ((inb(STATUS) & RDY) != RDY); /*wait for rdy assert*/
printf("NEW:");
fprintf(trace,"NEW:");
I can't find the functions that do the same that the ioperm, outb and inb but in windows.
Anybody can help me??
PS: what is the tag to use to ident my code?
PS2: sorry for my poor english...