[Mono-devel-list] Winelib/PInvoke question...

Jonathan Pryor jonpryor at vt.edu
Tue Feb 17 20:10:24 EST 2004


Below...

On Tue, 2004-02-17 at 17:24, Mark Easton wrote:
> Okay this is possibly a stupid question, but is it possible to use
> winelib as a standard shared library for P/Invoke purposes?  I know that
> one of the SWF implementations does just this, but it's my understanding
> that the Mono winelib implementation was re-jigged specifically for the
> SWF implementation.

Yes, the winelib that Mono used was "re-jigged" so that it could be
loaded through "normal" means (dlopen(3)).  By default, Wine likes/needs
to be in charge of loading libraries, as Windows makes several
guarantees about DLL loading that Unix shared libraries don't.  (For
example, Windows ensures that all DLLs get notified when a thread is
created and destroyed, among other things.)

The last time I remember seeing this come up on Wine Traffic, the
consensus was that Wine would likely never officially support the
loading of Wine libraries through non-Wine means, though this may have
changed since then.  You can find the archives here:

	http://www.kerneltraffic.org/wine/archives/html

 - Jon





More information about the Mono-devel-list mailing list