示例#1
0
        int IBluetopiaApi.SPP_Open_Server_Port(uint BluetoothStackID, uint ServerPort,
                                               NativeMethods.SPP_Event_Callback SPP_Event_Callback, uint CallbackParameter)
        {
#if DEBUG
            return(0x12345);
#else
            return((int)BluetopiaError.UNSUPPORTED_PLATFORM_ERROR);
#endif
        }
示例#2
0
 int IBluetopiaApi.SPP_Open_Server_Port(uint BluetoothStackID, uint ServerPort,
                                        NativeMethods.SPP_Event_Callback SPP_Event_Callback, uint CallbackParameter)
 {
     return(NativeMethods.SPP_Open_Server_Port(BluetoothStackID, ServerPort,
                                               SPP_Event_Callback, CallbackParameter));
 }
示例#3
0
 int IBluetopiaApi.SPP_Open_Remote_Port(uint BluetoothStackID, Int64 BD_ADDR, uint ServerPort, NativeMethods.SPP_Event_Callback SPP_Event_Callback, uint CallbackParameter)
 {
     return(NativeMethods.SPP_Open_Remote_Port(BluetoothStackID, BD_ADDR, ServerPort,
                                               SPP_Event_Callback, CallbackParameter));
 }
示例#4
0
 internal BluetopiaRfcommStream(BluetopiaFactory factory)
 {
     Debug.Assert(factory != null, "factory NULL");
     _fcty         = factory;
     _callbackAAAA = HandleSPP_Event_Callback;
 }
示例#5
0
 int IBluetopiaApi.SPP_Open_Remote_Port(uint BluetoothStackID, Int64 BD_ADDR, uint ServerPort, NativeMethods.SPP_Event_Callback SPP_Event_Callback, uint CallbackParameter)
 {
     return((int)BluetopiaError.UNSUPPORTED_PLATFORM_ERROR);
 }
示例#6
0
 internal static extern int SPP_Open_Server_Port(uint BluetoothStackID, uint ServerPort,
                                                 NativeMethods.SPP_Event_Callback SPP_Event_Callback, uint CallbackParameter);
示例#7
0
 internal static extern int SPP_Open_Remote_Port(uint BluetoothStackID,
                                                 BD_ADDR_BY_VALUE BD_ADDR, uint ServerPort,
                                                 NativeMethods.SPP_Event_Callback SPP_Event_Callback, uint CallbackParameter);