How to call Wine dll from python on Linux?

前端 未结 2 1419
太阳男子
太阳男子 2021-01-02 13:53

I\'m writing a python script in Linux, and need to call some Windows functions available in Wine. Specifically, AllocateAndInitializeSid and LookupAccoun

相关标签:
2条回答
  • 2021-01-02 14:20

    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.

    0 讨论(0)
  • 2021-01-02 14:25

    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.

    0 讨论(0)
提交回复
热议问题