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.

posted @ 2018-11-19 10:15  小雨滴答  阅读(654)  评论(0编辑  收藏  举报