BluetoothFindFirstRadio 函数

HBLUETOOTH_RADIO_FIND BluetoothFindFirstRadio(
    BLUETOOTH_FIND_RADIO_PARAMS* pbtfrp,
    HANDLE* phRadio
);

BluetoothFindFirstRadio函数开始枚举本地蓝牙无线电。

参数:

pbtfrp

Pointer to a BLUETOOTH_FIND_RADIO_PARAMS structure. The dwSize member of the BLUETOOTH_FIND_RADIO_PARAMS structure pointed to by pbtfrp must match the size of the structure. See Return Values for additional information about this parameter.

指向BLUETOOTH_FIND_RADIO_PARAMS结构的指针。pbtfrp指向的BLUETOOTH_FIND_RADIO_PARAMS结构的dwSize成员必须与结构的大小匹配。有关此参数的其他信息,请参阅返回值。

phRadio

Pointer to where the first enumerated radio HANDLE will be returned.

指向将返回第一个枚举的广播句柄的位置的指针。

返回值:

Returns a valid handle to the first Bluetooth radio upon successful completion; the phRadio parameter is a pointer to that handle.

Returns NULL upon failure. Call the GetLastError function for more information on the error. The following table describe common errors:

成功完成后返回第一个蓝牙电台的有效句柄;phRadio参数是指向该句柄的指针。

失败时返回NULL。调用GetLastError函数以获得关于错误的更多信息。下表描述了常见的错误:

Return codeDescription

ERROR_INVALID_PARAMETER

The pbtfrp parameter is NULL.  pbtfrp参数为空。

ERROR_REVISION_MISMATCH

The structure pointed to by pbtfrp is not the correct size.   pbtfrp指出的结构尺寸不正确。

ERROR_OUTOFMEMORY

Out of memory.   内存不足。

Header

Declared in BluetoothAPIs.h; include Bthsdpdef.h and BluetoothAPIs.h.

Library

Use Bthprops.lib.

转载于:https://www.cnblogs.com/qiwu1314/p/9981674.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值