Share via


BTH_SOCKOPT_SECURITY

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Syntax

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

Header ws2bth.h
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

Bluetooth Application Development Structures