Wrapping a Windows DLL

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Robert Fendt

Wrapping a Windows DLL

Post by Robert Fendt »

Hi,

maybe this is a common question, in which case I would be very glad for a
few pointers to corresponding information. Here is what I am hoping to
achieve:

A device (a DSLR, but that should not really matter) can be controlled by
the computer via USB. The manufacturer provides an SDK and a couple of
DLLs, but no USB documentation and certainly no source. It's using the SDK
or reverse-engineering the protocol. Is it possible to use Wine to emulate
the Windows-specific USB bits and pieces (so the DLL is happy) and thus
write a wrapper lib (.so) for Unix app development?

Regards,
Robert
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Wrapping a Windows DLL

Post by austin987 »

On Fri, Jul 3, 2009 at 1:23 AM, Robert Fendt<[email protected]> wrote:
Hi,

maybe this is a common question, in which case I would be very glad for a
few pointers to corresponding information. Here is what I am hoping to
achieve:

A device (a DSLR, but that should not really matter) can be controlled by
the computer via USB. The manufacturer provides an SDK and a couple of
DLLs, but no USB documentation and certainly no source. It's using the SDK
or reverse-engineering the protocol. Is it possible to use Wine to emulate
the Windows-specific USB bits and pieces (so the DLL is happy) and thus
write a wrapper lib (.so) for Unix app development?
http://wiki.winehq.org/USB

--
-Austin
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Wrapping a Windows DLL

Post by vitamin »

Robert Fendt wrote:A device (a DSLR, but that should not really matter) can be controlled by the computer via USB.
Vanilla Wine does not support any USB drivers and can not talk directly to USB devices (with exception of USB->Serial interfaces).

See the link Austin posted for experiential patches for USB support.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Wrapping a Windows DLL

Post by vitamin »

Forgot to add, you can create a "wrapper" for a DLL. The only problem, it will have to be winelib app running under Wine.

Wine is more then just a few libraries. It's a whole environment. You can't pull only one piece out of it and expect it to work. Especially of that one piece [kernel drivers] touches so many things.
Locked