次の方法で共有


BthCreateACLConnection (Compact 2013)

3/26/2014

This function creates an asynchronous connection-oriented (ACL) connection to a device with the specified address.

Syntax

int BthCreateACLConnection(
  BT_ADDR* pbt,
  unsigned short* phandle
);

Parameters

  • pbt
    [in] Pointer to the Bluetooth address.
  • phandle
    [out] Pointer to the connection handle.

Return Value

The following table shows the possible return values.

Value

Description

ERROR_SUCCESS

Success.

ERROR_SERVICE_NOT_ACTIVE

The Bluetooth stack is not present.

Requirements

Header

bt_api.h

Library

Btdrt.lib

See Also

Reference

Bluetooth API Connection Functions
BthCloseConnection