BTH_SOCKOPT_SECURITY

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;

Members

  • 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.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Ws2bth.h.

See Also

Bluetooth Structures

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.