[Wine] Want to use Digital Oszilloscope DSO-2100 at parport LPT1

Gert van den Berg wine-users at mohag.net
Thu Feb 4 11:21:30 CST 2010


On Wed, Feb 3, 2010 at 19:28, lsmod <wineforum-user at winehq.org> wrote:
>
> Gert van den Berg wrote:
>> IO Ports should NEVER be accessed directly on a multi-tasking
>> operating system. (If direct access takes place, multiple application
>> can access the port simultaneously, leading to crashes in the best
>> case...) If it runs under a Windows NT as a non-administrator user,
>> this is not the issue...
>
>
> Of course it would be better if there is a clean solution.
> But if you want to connect and use the hardware you have then you will have no choice.
> And such hardware based on a parallel port in windows is a typical relict if you are going to use Linux.
> So what shall i do?

Try a small C program that sets ioperm and then execs Wine... (iopl
might work as well...) (You might also want to drop root priviledges
before execing Wine....)

Gert

Something like:

#include<sys/io.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"); /* My unix C coding
needs practice, so this might just destroy your PC, read docs... */

     return 1;
}



More information about the wine-users mailing list