Programming Manual
54
FindNextBTDevice
This function retrieves the results of an nearby Bluetooth device search.
DWORD
FindNextBTDevice
{
HANDLE
hLookup
,
LPTSTR
szDeviceName
,
ULONGLONG *
btAddress
,
int
nNameLen
}
Parameters
hLookup
[in] Handle obtained from
InitSearchBTDevice
function
szDeviceName
[out] The buffer to receive the device name string
btAddress
[out] Receive the device address of 64-bit unsigned integer
nNameLen
[in] The
szDeviceName
buffer max size. If terminal device name length >
nNameLen, the
szDeviceName
buffer store data of nNameLen length
Returned Values
If the action succeeds, the returned value is
E_FUNC_SUCCEED
. If the action fails,
possible returned values are
E_FUNC_ERROR
,
E_FUNC_PAR_ERROR
,
BT_ERR_DEVICE_ERROR
.
Remarks
Must call
EndSearchBTDevice
function frees the handle after calls to the
InitSearchBTDevice
and
FindNextBTDevice
function.
Example
#define GET_NAP(_bt_addr) ( (USHORT) (((_bt_addr) &
(ULONGLONG)0xFFFF00000000) >> (8*4)) )
#define GET_SAP(_bt_addr) ( (ULONG) (((_bt_addr) &
(ULONGLONG)0x0000FFFFFFFF) >> (0)) )
DWORD dwRe;
Summary of Contents for PA-60
Page 1: ...PA 60 Mobile Computer Programming Manual DOC NO UM PA605 02 June 2012 Version 1 0 ...
Page 57: ...Programming Manual 53 Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...
Page 72: ...Programming Manual 68 Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...
Page 91: ...Programming Manual 87 Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...