Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Embedded
Windows Embedded CE
Windows CE .NET
Client Support
Device Discovery

  Switch on low bandwidth view
Microsoft Windows CE .NET 4.2
Device Discovery

Device discovery enables clients to discover other OBEX devices that are in range, regardless of their protocol. To obtain a list of available devices, clients call the IObex::EnumDevices method.

Another and probably preferred method for device discovery is using the IConnectionPointContainer interface and the IObexSink interface. To make device discovery notifications go to IObexSink, you should do the following:

  1. IObex->QueryInterface for an IConnectionPointContainer (pCPContainer)
  2. pCPContainer->FindConnectionPoint(&pCP)
  3. pCP->Advise(pSink) where pSink is an IObexSink
  4. pObex->StartDeviceEnum

See Also

Device Discovery | Object Exchange Interfaces | Connection Points | Use of Streams | Object Exchange Protocol | IObex::EnumDevices | Client Support


 Last updated on Friday, April 09, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker