LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   What Happens if You replace all the Wine .dll's with Native Windows .dll's? (http://www.linuxquestions.org/questions/linux-software-2/what-happens-if-you-replace-all-the-wine-dlls-with-native-windows-dlls-764559/)

The Dude 10-26-2009 10:54 AM

What Happens if You replace all the Wine .dll's with Native Windows .dll's?
 
Hi guys,

Im just curious, but what would happen if I were replace all the stuff in the wine system32 folder with the stuff in my Windows 7 install?

How does wine actually load the dll's? Does it matter where they are in the fake windows folder layout, or does wine just load the dll whenever it gets called, regardless of where the windows app looks for it?

i92guboj 10-26-2009 11:05 AM

Quote:

Originally Posted by The Dude (Post 3732991)
Hi guys,

Im just curious, but what would happen if I were replace all the stuff in the wine system32 folder with the stuff in my Windows 7 install?

You really shouldn't do that. It's always preferable to use the wine version of the API's when possible. If you need to override a given dll for a concrete application then use winecfg to do so the right way.

Not all dll's can be used. It depends on each case. Some of them are simply too low level.

Quote:

How does wine actually load the dll's? Does it matter where they are in the fake windows folder layout, or does wine just load the dll whenever it gets called, regardless of where the windows app looks for it?
My guess is that it respects the order given by the application, given that sometimes a given version of a dll can be non-standard, patched or of a different version than this that you have in your system32 dir. So, usually the ones in the folder where the app lives should take precedence, just like they do in Windows. However I haven't looked at the sources to be able to confirm this.


All times are GMT -5. The time now is 01:42 AM.