dnsapi.dll error

Questions about Wine on Linux
Locked
Shokushu
Newbie
Newbie
Posts: 1
Joined: Fri Jan 03, 2014 7:57 pm

dnsapi.dll error

Post by Shokushu »

I'm running Kubuntu Saucy Salamnder 13.10 x64 and have installed Wine from the Ubuntu Wine Team repository:
https://launchpad.net/~ubuntu-wine/+archive/ppa

The versions are:
wine1.7 1.7.9-0ubuntu1
winetricks 0.0+20130707~precise1~ppa1 (from Saucy repository, despite the name)

I'm getting the following error with several Windows applications under Wine:

Code: Select all

err:module:import_dll Library DNSAPI.dll (which is needed by L"Z:\\media\\bla\\bla.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"Z:\\media\\bla\\bla.exe" failed, status c0000135
It seems it can't find "dnsapi.dll". I've tried several things to remedy this:
  • looked at the winetricks dll list, but I couldn't find anything which would install dnsapi.dll
  • looked at the Wine faq and found this:

    Code: Select all

    10.16. Why doesn't DNS resolve in 64-bit operating systems?
    
    Many distributions don't provide all the 32-bit compatibility libraries that wine needs. In this case, wine needs 32-bit DNS libraries. On Ubuntu/Debian, this package is lib32nss-mdns. To install it on those OSes, use:
    
    sudo apt-get install lib32nss-mdns 
    
    For other operating systems, the package name and installation method may differ. Consult your distribution's support channels.
    I've installed lib32nss-mdns (0.10-3.2ubuntu1) from the Ubuntu Saucy repository, but that didn't help.
    .
  • copied over "dnsapi.dll" from a Windows 7 SP1 install and put it in the Wine system directory:
    ~/.wine/drive_c/windows/system32/

    This didn't change anything either, and neither did renaming the file from "dnsapi.dll" to "DNSAPI.dll" (since Linux makes a distinction between small letters and capital letters).

    Then I remembered: copying dlls into the Windows system directory does nothing, you need to register them using regsrv. How do you register dlls with Windows in Wine?
Locked