
PT-90 Mobile Computer SDK Programming Manual
70
GetConnectStatus
Query the device connect status.
DWORD
GetConnectStatus
{
ULONGLONG
btAddress
,
int
nConnectType
,
LPCWSTR
pCom
,
int *
nStatus
}
Parameters
btAddress
[in] Bluetooth device address
nConnectType
[in] Connect profile type. 1
Serial port profile, 2
File transfer profile
pCom
[in] The connect com for Serial port profile, must be four characters long.. Contains "COM"+ com
identifier index, for example "COM7". If
nConnectType
parameter is 2 (FTP),
pCom
ben’t to check
nStatus
[out] The device connect status
Returned Values
If the action succeeds, the returned value is
. If the action fails, possible returned value is
Example
GetConnectStatus(btAddress, 1, _T("COM7"), &nStatus);
if(nStatus)
AfxMessageBox(_T("SPP Connect!!"));
else
AfxMessageBox(_T(“SPP Disconnect”));
Requirements
OS Versions:
Windows CE 6.0 or beyond.
Header:
sysapiax.h
Link Library:
sysapiax.lib
Link DLL:
sysapiax.dll
Device:
PT90