Programming Manual
27
EnableAutoConnect
The EnableAutoConnect function turns Autoconnect on and off.
BOOL
EnableAutoConnect
{
BOOL
bEnable
}
Parameters
bEnable
[in] Flag that indicates whether ActiveSync is being automatically executed
(TRUE) or ActiveSync is being not automatically executed (FALSE) when user
plug cable into terminal.
Return Values
Return TRUE if the operation is successful; otherwise FALSE.
Remarks
After called EnableAutoConnect with bEnable set to TRUE, terminal will
automatically execute ActiveSync program when user plug cable into terminal. After
called EnableAutoConnect with bEnable set to FALSE, terminal will not automatically
execute ActiveSync program when user plug cable into terminal.
Example
BOOL bResult;
bResult = EnableAutoConnect(TRUE);
if(bResult == FALSE)
AfxMessageBox(_T("EnableAutoConnect fail"));
Requirements
OS Versions:
Windows CE 5.0 and later.
Header:
sysapiax.h
Link Library:
sysapiax.lib
Link DLL:
sysapiax.dll
Device:
PA60
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 ...