Click to See Complete Forum and Search --> : mDNSResponder for windows 64-bit


rjbez
August 21st, 2009, 03:39 PM
I am using Apple's mDNSResponder.exe service to browse a network for printers. In order to avoid requiring Bonjour installed I compiled my own mDNSResponder.exe and include that in the install of the the printer driver. (I check to see if Bonjour in installed, if it is not I launch my own mDNSResponder)

-I can start my own service or use Apples Bonjour service fine in 32-bit windows xp-7
-I can start and use my own service in 64-bit windows xp-7

When I call DNSServiceBrowse() in any 64-bit operating using the Bonjour Service already installed it fails. The function returns: -65540 which is kDNSServiceErr_BadParam. What is different when calling DNSServiceBrowse() in 64-bit than 32-bit with apples software? The parameters work fine with my mDNSResponder and Apple's 32-bit responder.

Does anyone have any clues?

(Note: I DO have the 64-bit version of Bonjour Installed and the service is running. If I use the dns-sd.exe utility I can find the printers no problem.)