다음을 통해 공유


BTH_SOCKOPT_SECURITY (Windows CE 5.0)

Send Feedback

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 Application Development Structures

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.