The information in this article applies to:
SYMPTOMSDuring the connection or disconnection of a Windows CE Device with the desktop, a desktop application can be executed based on the occurrence of either event. The information to make this happen is stored in the registry keys AutoStartOnConnect and AutoStartOnDisconnect, which are subkeys of the Windows CE Services key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE ServicesTo enable Windows CE Services to launch an application based on either event, you can create a REG_SZ value that specifies the application. Sometimes, you may want to launch an application with command-line parameters. This action may fail with a message box titled, "Application Failed to Start." CAUSEWindows CE Services 2.x implements the launching of an application via the ShellExecute API. RESOLUTIONIf the exe path is surrounded by quotation marks, the ShellExecute API will recognize any trailing command-line parameters instead of interpreting the entire contents as the exe path; for example: "c:\winnt\system32\notepad.exe" c:\test.txt STATUSThis behavior is by design. REFERENCESFor more information on Registry-based connection notifications, please refer to the Windows CE Platform SDK documentation. Additional query words: messagebox
Keywords : kbKernBase kbRegistry kbWinCE kbWinCE200 |
Last Reviewed: January 10, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |