Widcomm bluetooth: cómo abrir el COM virtual

Estoy tratando de usar la pila de bluetooth Widcomm de Broadcomm y debería funcionar, pero hay una cosa que todavía no puedo entender: ¿CÓMO PUEDO ABRIR AUTOMÁTICAMENTE EL COM VIRTUAL CUANDO NECESITO COMUNICARME?

Estoy intentando usar SPP (perfil de puerto serie) pero la documentación con el SDK no es tan exhaustiva.

POR FAVOR, ¡NO PUEDO USAR 32 FETOS!

Envolví la parte del servidor SPP de la API:

    [DllImport("wcbts.dll", SetLastError = false, CharSet = CharSet.Unicode)]
    internal static extern IntPtr CreateSppServer(IntPtr pStack);

    [DllImport("wcbts.dll", SetLastError = false, CharSet = CharSet.Unicode)]
    internal static extern void DeleteSppServer(IntPtr pServer);

    [DllImport("wcbts.dll", SetLastError = false, CharSet = CharSet.Unicode)]
    internal static extern bool SppServerStart(IntPtr pServer, IntPtr pszServiceName);

    [DllImport("wcbts.dll", SetLastError = false, CharSet = CharSet.Unicode)]
    internal static extern bool SppServerStop(IntPtr pServer);

    [DllImport("wcbts.dll", SetLastError = false, CharSet = CharSet.Unicode)]
    internal static extern IntPtr SppServerNotifyWindow(IntPtr pServer, IntPtr hWnd, int nMsg);

¿Qué es pszServiceName? ¿Donde puedo encontrarlo? y hWnd y nMsg ???

Gracias

Respuestas a la pregunta(2)

Su respuesta a la pregunta