Click to Rate and Give Feedback
MSDN
MSDN Library
Bluetooth
Bluetooth Reference
 BTH_SOCKOPT_SECURITY
Collapse All/Expand All Collapse All
BTH_SOCKOPT_SECURITY
Windows Mobile SupportedWindows Embedded CE Supported
8/28/2008

This structure defines the link key associated with a peer Bluetooth device that is connected through a Winsock interface.


typedef struct _BTH_SOCKOPT_SECURITY {
  int iLength; 
  bt_addr btAddr; 
  unsigned char caData[16];
} BTH_SOCKOPT_SECURITY, *PBTH_SOCKOPT_SECURITY;
iLength

Value that is set to 0 or 16 for link key, between 0 and 16 for PIN, or equal to 0 if the PIN is revoked.

btAddr

Bluetooth address of the peer device on which the link-key query is being performed, or 0 if the link key is revoked. If set to 0, and the socket is connected, the Bluetooth address of the peer device is used instead. If the socket is not connected and it is the listening socket, the PIN becomes an access code for all incoming connections. Otherwise, the PIN is set when the socket is connected.

caData

Link key of the peer Bluetooth device.

Headerws2bth.h
Windows Embedded CEWindows CE .NET 4.0 and later
Windows MobileWindows Mobile Version 5.0 and later
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker