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?
And is there a way to open and use a Windows DLL from a Linux program?
Thanks Damjan
__________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail
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.
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+
--- Eric Pouech pouech-eric@wanadoo.fr 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?
Thanks
__________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail
You mean link it with winelib when compiling, or build a .so library you link in at runtime?
I mean creating what wine calls a winelib app: it uses wine magic for startup (it ends up being a .so file run by the wine loader, and not a full native ELF application).
By the way, how essential is STI.DLL for getting a scanner driver to work, and can you use the one provided with Windows?
Dunno. As any DLL (especially the ones without hardware relationship) should be run in Wine, but YMMV (depending on the dependencies of the said DLL).
A+