========================================================== ==================================
Title: automatically start the application at wince startup
Abstract:
Note: Windows CE 5.0
Date: 2010.5.17
Name: Zhu minglei
========================================================== ==================================
(1)Modify the registry. For example:
[HKEY_LOCAL_MACHINE/init]
"Launch50" = "assumer.exe"
"Depend50" = hex: 14,00, 1e, 00
The producer must be started after the application is started in the order of "Launch20" (hexadecimal 14 is decimal 20) and "Launch30" (hexadecimal 1e is decimal 30.
In this way, it is easy to automatically start our own applications at startup. For example:
[HKEY_LOCAL_MACHINE/Init]
"Launch80" = "XXX.exe"
"Depend80" = hex: 14,00, 1e, 00
(2)You can also use the following method. Create a shortcut, such as Autorun. lnk. The text content is as follows:
20 #/windows/Autorun.exe
20 is the number of characters after.
Add Autorun. lnk to NK, for example:
Autorun. lnk $ (_ FLATRELEASEDIR)/Autorun. lnk NK S
Place Autorun. lnk in the Startup folder, for example:
Directory ("/Windows/Startup"):-File ("Autorun. lnk", "/Windows/Autorun. lnk ")
In this example, autorun.exe can be automatically started.
Do not forget to add the application to be started to NK in the preceding two methods, for example:
XXX.exe $ (_ FLATRELEASEDIR)/XXX.exe NK S
(3)Although the above two methods are relatively simple and convenient, when you want to replace the application to be automatically started,
You also need to re-Customize NK, which is a little troublesome. To make it easier to change the "automatically started application" in the future, you can do so through the following methods. First, write an application, search for it in the application, and start yyy.exe under the xxxfolder in flash. Then, the application can be automatically started through one of the above two methods. After that, you just need to put the automatically started application program under the xxxfile in flash and change the name to yyy.exe. This is also a frequently used method.