[Wine] Want to use Digital Oszilloscope DSO-2100 at parport LPT1
Gert van den Berg
wine-users at mohag.net
Thu Feb 4 11:46:00 CST 2010
Fixed code: /* Hopefully... Wrapping WILL %#$% it up... */
#include<sys/io.h>
#include<stdio.h>
#include <unistd.h>
int main(int argc, char *argv[])
{
ioperm(0,0x3ff,1); /* Dangerous, overkill, allows access to all ports */
/* setuid(<your uid>); /* Drops permissions - have never used it,
check docs... Environment should probably be set up as well */
execlp("wine","wine","application.exe",NULL); /* My unix C coding
needs practice, so this might just destroy your PC, read docs... */
printf("Failed to run Wine\n");
return 1; /* Should never run */
}
More information about the wine-users
mailing list