• 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.

  • 相关阅读:
    分形之城
    【SDOI2011 第2轮 DAY1】消防 树上问题+二分+贪心
    【Usaco Nov08 Gold】玩具 三分+贪心
    分治 复习
    快读板子
    最小线段覆盖 C神奇项链
    比赛经验积累1
    字符串 专题
    界面小项目之W3C
    前端小基础
  • 原文地址:https://www.cnblogs.com/qiwu1314/p/9981674.html
Copyright © 2020-2023  润新知