dnsapi.dll error

Questions about Wine on Linux
Post Reply
anarchuser
Newbie
Newbie
Posts: 2
Joined: Mon Mar 11, 2024 7:13 am

dnsapi.dll error

Post by anarchuser »

When trying to run the software for a scientific instrument, available at https://www.liquidinstruments.com/produ ... ktop-apps/ (latest version), I get an error about dnsapi.dll, after briefly seeing the splash screen of the application:

Code: Select all

<1223 lines of:>013c:err:psdrv:PSDRV_PPDDecodeHex Invalid hex char in hex string
013c:fixme:win:RegisterPowerSettingNotification (000000000002007E,{02731015-4510-4526-99e6-e5a17ebd1aea},0): stub
013c:fixme:system:NtUserQueryDisplayConfig flags 0x2, paths_count 0x7ffffe1fe534, paths 0x7ffffeb80280, modes_count 0x7ffffe1fe538, modes 0x7ffffebe0610, topology_id (nil) semi-stub
013c:fixme:system:EnableNonClientDpiScaling (000000000002006A): stub
013c:fixme:win:IsTouchWindow hwnd 000000000002006A, flags 00007FFFFE1FF370 stub!
013c:fixme:font:NtGdiRemoveFontMemResourceEx (0x5555d19aebd1) stub
013c:fixme:font:NtGdiRemoveFontMemResourceEx (0x5555d06d0161) stub
013c:fixme:font:NtGdiRemoveFontMemResourceEx (0x7969ccc54331) stub
013c:fixme:font:NtGdiRemoveFontMemResourceEx (0x7969cdc54331) stub
013c:fixme:font:NtGdiRemoveFontMemResourceEx (0x7969cec54331) stub
013c:fixme:file:NtLockFile I/O completion on lock not implemented yet
013c:fixme:font:find_matching_face Untranslated charset 255
013c:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\OTF\\SyrCOMEdessa.otf"
017c:fixme:file:NtLockFile I/O completion on lock not implemented yet
017c:fixme:process:SetProcessShutdownParameters (00000100, 00000001): partial stub.
glx: failed to create dri3 screen
failed to load driver: nouveau
failed to open /dev/dri/card1: Permission denied
failed to open /dev/dri/card1: Permission denied
failed to load driver: i965
013c:fixme:d3d:wined3d_guess_card No card selector available for card vendor 0000 (using GL_RENDERER "llvmpipe (LLVM 17.0.6, 256 bits)").
013c:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
013c:fixme:system:EnableNonClientDpiScaling (0000000000030090): stub
013c:fixme:win:IsTouchWindow hwnd 0000000000030090, flags 00007FFFFE1FF240 stub!
01a4:fixme:netprofm:connection_GetAdapterId 0000796942F9CFC0, 00007969498DBB48
01a4:fixme:netprofm:connection_GetAdapterId 0000796942F9D060, 00007969498DBB48
01a4:fixme:netprofm:connection_point_Advise 00007969032610E0, 0000796942F9E780, 0000796942F9E7B4 - semi-stub
wine: Call from 00006FFFFFC7D638 to unimplemented function DNSAPI.dll.DnsServiceBrowse, aborting
After copying dnsapi.dll from Windows\System32 to drive_c/windows/system32 and using winetricks to set the option for the native dll, the error I get is

Code: Select all

0080:fixme:wineusb:add_usb_device Interface 1 has 5 alternate settings; using the first one.
0080:fixme:wineusb:add_usb_device Interface 2 has 5 alternate settings; using the first one.
0080:fixme:wineusb:add_usb_device Interface 0 has 2 alternate settings; using the first one.
0080:fixme:wineusb:add_usb_device Interface 0 has 2 alternate settings; using the first one.
0080:fixme:wineusb:add_usb_device Interface 1 has 8 alternate settings; using the first one.
0080:fixme:wineusb:add_usb_device Interface 1 has 12 alternate settings; using the first one.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
wine: Call from 00006FFFFFC7D638 to unimplemented function api-ms-win-core-crt-l2-1-0.dll.__dllonexit3, aborting
0054:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\NDIS": c0000142
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"NDIS" failed to start: 1114
wine: Call from 00006FFFFFC7D638 to unimplemented function api-ms-win-core-crt-l2-1-0.dll.__dllonexit3, aborting
0118:err:module:loader_init "DNSAPI.dll" failed to initialize, aborting
0118:err:module:loader_init Initializing dlls for L"C:\\Program Files\\Liquid Instruments\\Moku\\moku.exe" failed, status 80000100
No splash screen this time.

Otherwise, the software installs fine. The dll's are copied from the Windows 10 installation where it works without problems. Here is my system:

-- Arch Linux, up-to-date with kernel 6.7.9
-- Wine 9.3

Any suggestion is appreciated. Thanks!
anarchuser
Newbie
Newbie
Posts: 2
Joined: Mon Mar 11, 2024 7:13 am

Re: dnsapi.dll error

Post by anarchuser »

I sort of solved it by adding an empty function DnsServiceBrowse (and the corresponding DnsServiceBrowseCancel, which is called shortly after) in dlls/dnsapi/main.c. After building dnsapi.dll I was able to connect to the instrument and to access its functions.
Post Reply