WinCEGeräteSE_Handbuch_Programmierung_v3.00_EN
13 / 65
To autostart programs when connecting and disconnecting devices, two entries are added to the registry.
Examples:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE\Services\
AutoStartOnConnect
]
"GetData"="X:\\Tools\\GetData.exe X:\\Data"
"PutUpdate"="X:\\Tools\\PutUpdate.exe X:\\Update\\Update.CAB"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE\
Services\
AutoStartOnDisconnect
]
"HandleData"="X:\\Tools\\HandleData.exe X:\\Data"
As you can see, it is possible to enter several programs. This option also enables users to call up programs
that use RAPI functions to access the connected Windows CE device from the PC.
2.4 RAPI functions
When the Windows CE device is connected to the PC, remote API functions are used by the program
running on the PC to directly access the Windows CE device. To do this, open Remote Procedure Calls on
the device. This allows access to the registry, the file system and to the device’s databases.
RAPI functions can be used to:
•
Change the registry entries for device configuration
•
Receive data recorded on the device
•
Upload program and data updates
•
Sync databases on the device and PC
For more information, consult the Microsoft Developer Network (MSDN).