The information in this article applies to:
SUMMARYPrograms launched at Windows CE startup from the [HKEY_LOCAL_MACHINE\Init] key of the registry receive the launch index ID as a parameter on the command line. This is the only command-line parameter available to programs launched from the Init registry key. MORE INFORMATIONThe index ID is the numeric portion of the "launch" label used to store the program name in the registry. For example, the following starts Taskman.exe with a command-line parameter of "50":
Taskman.exe signals that it has completed its initialization by calling the SignalStarted function with the index value. The most common form of this is the following:
NOTE: lpCmdLine is the command-line pointer parameter passed to the WinMain program.The SignalStarted function call allows any programs in the Init key that are dependent on Taskman.exe to be launched. Programs that don't require any command-line parameters, or that require other OEM-specified command-line parameters, must be launched via a custom shell program. The shell program is launched from the Init key and uses the CreateProcess function to start the desired application. REFERENCESSee Windows CE ETK Help documentation article: Registry Entries for System Startup. Additional query words:
Keywords : kbETK kbVC500 kbWinCE211 kbDSupport |
Last Reviewed: September 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |