
Programming Manual
67
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
E_FUNC_SUCCEED
. If the action fails,
possible returned value is
E_FUNC_PAR_ERROR
.
Example
GetConnectStatus(btAddress, 1, _T("COM7"), &nStatus);
if(nStatus)
AfxMessageBox(_T("SPP Connect!!"));
else
AfxMessageBox(_T(“SPP Disconnect”));
Requirements
OS Versions:
Windows CE 5.0 and later.
Header:
sysapiax.h
Содержание PA-60
Страница 1: ...PA 60 Mobile Computer Programming Manual DOC NO UM PA605 02 June 2012 Version 1 0 ...
Страница 55: ...Programming Manual 51 Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...
Страница 57: ...Programming Manual 53 Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...
Страница 72: ...Programming Manual 68 Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...
Страница 91: ...Programming Manual 87 Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...
Страница 119: ...Programming Manual 115 Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...