Device drivers in Wine

Damjan Jovanovic dj015 at
Sat Jun 19 11:04:07 CDT 2004

--- Eric Pouech <pouech-eric at> wrote:
> Damjan Jovanovic a écrit :
> > Hi
> > 
> > Basically, I have a Windows user-space device
> driver,
> > and I need to get it working under Linux.
> > 
> > I note Wine has some "device" functions
> > (FILE_CreateDevice(), and DOSFS_OpenDevice()). How
> do
> > these work and what do they do? Are they
> documented
> > anywhere?
> what driver is it ? if it is run as a standard DLL,
> just open the driver 
> as a DLL, and call it's entry point.

It's a scanner driver, consisting of a TWAIN plugin,
plus about 20 DLL's and a kernel-mode driver. But I
know exactly what the kernel-mode driver part does, so
it should be easy - provided I can change what
CreateFileA(), CloseHandle(), DeviceIoControl(),
ReadFile() and WriteFile() do.

> > And is there a way to open and use a Windows DLL
> from
> > a Linux program?
> the simpliest way is to make your program a winelib.
> Otherwise, look at 
> what the mono or the Ardour folks did lately (search
> on wine-devel archives)
> A+

You mean link it with winelib when compiling, or build
a .so library you link in at runtime?

By the way, how essential is STI.DLL for getting a
scanner driver to work, and can you use the one
provided with Windows?


Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.

More information about the wine-devel mailing list