Problems registering a bluetooth service in wm5 using WSASetService

Hi, I am a Mobile Computing student and I have got serious toubles with the registration of a Bluetooth-service on Windows Mobile 5.

I am using the WSASetService() method (the whole thing works perfectly on XP) and I need (because of Windows Mobile) to create an SDP record using the bthnscreate.exe tool, which I just can't find on my device. So I just used an example spd record code from msdn, write the BYTE[] into a blob object and pass it in the 'lpBlob' member of the WSAQUERYSET structure, but all I get is an error 10022 ... 'WSAEINVAL' - invalid argument.

Is there any chance to get this cthnscreate.exe tool, for I really need to set up this Bluetooth service on my PDA, or do you have any explanation for this problem, because I just can't solve it by using msdn and the web.

Assuming the whole service registration still doesn't work: Is there any chance to rename the standard COM0 port from 'SerialPort' to, for instance, 'AnotoStreamingService'


Answer this question

Problems registering a bluetooth service in wm5 using WSASetService