Connect to a bluetooth device with a MT2070 WCE5 using winsock

I'm trying to connect to a bluetooth device with a MT2070 with Windows CE5.

I need to do it using winsocket api with c++, becuase the same application is used on different devices.

I execute "socket(AF_BTH, SOCK_STREAM, BTHPROTO_RFCOMM)" to create the socket and I get error 10047.

So, is it possible to use winsock with this device?

 

Note: I have this application running on severall other devices With Windows Mobile/CE and working, but I can't with MT2070.