Using Windows DLL in Linux

Want a new feature? Discuss what you would like to see in Ultibo.
SuperTuxer
Posts: 1
Joined: Wed Dec 27, 2017 3:45 pm

Using Windows DLL in Linux

Postby SuperTuxer » Sun Jun 23, 2019 1:11 am

Hello.
Right now, i have found this page (german text), which describe how Windows DLL's can be used in Linux.
https://www.linux-magazin.de/news/loadl ... -zu-linux/

Here is the Sourceforge Project of the "google" employee who has programmed it and demonstrate it with "Windows Defender":
https://github.com/taviso/loadlibrary

I do not know, if this is also possible with an ARM processor (Raspberry) or similar arcitectures. But, I think, it could be interessting to visit, check and/or discuss.
Regards
Stephan
hansotten
Posts: 64
Joined: Thu Feb 04, 2016 7:07 am

Re: Using Windows DLL in Linux

Postby hansotten » Sun Jun 23, 2019 10:32 am

If the DLL does not use any WIndows native API such as Windows 32 or .NET or other, it may work, a DLL is just a piece of software with a defined interface.
User avatar
Ultibo
Site Admin
Posts: 2291
Joined: Sat Dec 19, 2015 3:49 am
Location: Australia

Re: Using Windows DLL in Linux

Postby Ultibo » Sun Jun 23, 2019 11:39 pm

SuperTuxer wrote:I do not know, if this is also possible with an ARM processor (Raspberry) or similar arcitectures. But, I think, it could be interessting to visit, check and/or discuss.

Hello,

Our interest in this is very different from the author of this library but we can say for sure that loading a DLL file on the ARM architecture is completely possible, in fact the Portable Executable (PE) specification even has defined values for ARM and ARM64. Of course there are not many DLLs that are compiled for ARM and loading an x86 compiled DLL won't be much use (except maybe for extracting embedded resources) but Visual Studio is able to create ARM DLLs and things like the Windows 10 IoT edition make use of this.

We don't really have much interest in loading existing Windows DLLs, more in being able to load both the SO and DLL formats as a way of extending Ultibo with external code. If we can make Ultibo emulate just the small amount of the API needed from Windows or Linux to execute the startup code contained in SO and DLL libraries generated by common compilers such as GCC, Visual Studio and even possibly the Borland (now Embacadero / Idera) C/C++ compilers then we can expand the number of options available for compiling code for Ultibo to include a lot of additional tools.
Ultibo.org | Make something amazing
https://ultibo.org

Return to “Feature requests”

Who is online

Users browsing this forum: No registered users and 2 guests