Hey Sam. That is puzzling...and I'm not really sure why Windows is
returning 1813 (ERROR_RESOURCE_TYPE_NOT_FOUND). One thing that is a
little suspect with the NSP code however is how errors are being
returned in some of the unimplemented functions.
NSPInstallServiceClass just returns WSA_INVALID_PARAMETER. However,
if memory serves correctly, one is supposed to return SOCKET_ERROR
and set the specific error with SetLastError. Any chance you could
make this change in the NSP source code, reinstall it, and see if
anything changes?
Also...the NSP is self-registering...you don't need NSPTool. Just
use regsvr32 on the dll to install/remove it.
Take care,
Scott
On Dec 14, 2005, at 6:58 PM, Sam Kenny wrote:
Hi All,
I'm currently evaluating the Winsock Registration and Resolution APIs
and have noticed when calling WSAInstallServiceClass without Bonjour
installed I'm getting the error code 10045 (WSAEOPNOTSUPP) but when
Bonjour is installed, the error code is odd (1813). I built the
NSPTool
from the source code, disabled mdnsNSP, and the correct error code is
returned again.
I had a look through the NSP source code, but nothing jumped out at me
straight away except that the mdnsNSP NSPLookupServiceBegin
implementations doesn't actually check what type of query is being
invoked but just blindly tries to see if it's suffix is ".local", but
that still doesn't explain the weird error code.
Any thoughts on what is going on here?
Cheers,
Sam
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bonjour-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bonjour-dev/sherscher%
40apple.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bonjour-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/bonjour-dev/email@hidden