.NET Components for Mobility

Call back function

Last post 07-06-2009 5:21 PM by alanjmcf. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 07-02-2009 12:28 AM

    Call back function

    Hi
    I want to use  BluetoothWin32Authentication  callback function in order to answer pairing requests. Is there any managed 
    VC++ code sample that I can use?
     
    Thanks 
     
     
     
     
  • 07-05-2009 2:38 PM In reply to

    Re: Call back function

    No there are just the samples in the class documentation which are VB and C#.  You could also consider just calling the method natively from C++ natively that's BluetoothRegisterForAuthentication http://msdn.microsoft.com/en-us/library/aa362883(VS.85).aspx
    Alan J. McFarlane
    http://www.alanjmcf.me.uk/
    Please follow-up in the newsgroup for the benefit of all.
    Have I helped? Consider visiting my Amazon wishlist, see my homepage.
  • 07-06-2009 9:49 AM In reply to

    Re: Call back function

    Hi Alan,

    Thank you for your reply; I should give some more information about the issue, my bad. I am trying to develop an application on windows XP SP2 desktop environment. Desktop app has to respond to quickly appearing and disappearing devices and external devices try to authenticate and send files randomly. If I can detect when external device try to connect then I can send pin code and accept connection without user intervention.

     I am using Widcomm stack and 32feet SDK 2.4. C# code will be fine for me.

     

    Thanks again

     
  • 07-06-2009 5:21 PM In reply to

    Re: Call back function

    Aaahhhh, BluetoothWin32Authentication is for the Microsoft stack only.  As we know there's no support in the Widcomm API for answering authentication requests. :-(  Thus we can't support that either.

    In Connect we try CRfCommPort::OpenClient, and if it fails Bond, and call OpenClient again.  See the "32feet and Widcomm.doc" document for more information.  See if that's any good for you...

    Alan J. McFarlane
    http://www.alanjmcf.me.uk/
    Please follow-up in the newsgroup for the benefit of all.
    Have I helped? Consider visiting my Amazon wishlist, see my homepage.
Page 1 of 1 (4 items)
Copyright © 2001-2010 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.