
PT-90 Mobile Computer SDK Programming Manual
32
EnableAutoConnect
To turn the AUTOCONNECT function ON or OFF.
BOOL
EnableAutoConnect
{
BOOL
bEnable
}
Parameters
bEnable
[in] Flag that indicates whether ActiveSync is being automatically executed (TRUE) or not (FALSE)
when user plugging host interface cable into the terminal.
Returned Values
Returning TRUE if the operation is successful. otherwise, FALSE.
Remarks
If calling EnableAutoConnect with bEnable set to TRUE, the terminal will automatically execute ActiveSync
program when user plug cable into the terminal. If calling EnableAutoConnect with bEnable set to FALSE, the
terminal will not automatically execute ActiveSync program when user plug cable into the terminal.
Example
BOOL bResult;
bResult = EnableAutoConnect(TRUE);
if(bResult == FALSE)
AfxMessageBox(_T("EnableAutoConnect fail"));
Requirements
OS Versions:
Windows CE 6.0 or beyond.
Header:
sysapiax.h
Link Library:
sysapiax.lib
Link DLL:
sysapiax.dll
Device:
PT90