Skip to content Skip to sidebar Skip to footer

How To Call Wine Dll From Python On Linux?

I'm writing a python script in Linux, and need to call some Windows functions available in Wine. Specifically, AllocateAndInitializeSid and LookupAccountSidW, to determine who is

Solution 1:

Doesn't Wine provide *.so versions of the dlls? I seem to have /usr/lib32/wine/advapi32.dll.so, for example.

If you're on a 64-bit machine, keep in mind that you'll need a 32-bit version of Python to load 32-bit libraries.

Solution 2:

Understand that .DLL is the format used by Windows.

On linux, such libraries end with .SO

You can't use a library compiled for one platform on the other one. It's not compatible.

Post a Comment for "How To Call Wine Dll From Python On Linux?"