已解决!还是自己没仔细,今天又看了一下MSDN里对CeRunAppAtEvent函数的解释,发现还是自己没看仔细啊!
以下是MSDN里载出来的
Remarks
The application is started with a system-defined command line. If there was already an instance of the application running, the new instance must send a private message to the existing instance and then shut down. The command line, which corresponds to the registered event, can be one of the following string constants.
Constant Value
APP_RUN_AFTER_EXTENDED_EVENT "AppRunAfterExtendedEvent"
APP_RUN_AFTER_INTERNET_PROXY_CHANGE "AppRunAfterInternetProxyChange"
APP_RUN_AFTER_SYNC "AppRunAfterSync"
APP_RUN_AFTER_TZ_CHANGE "AppRunAfterTzChange"
APP_RUN_AFTER_WAKEUP "AppRunAfterWakeup"
APP_RUN_AT_AC_POWER_ON "AppRunAtAcPowerOn"
APP_RUN_AT_AC_POWER_OFF "AppRunAtAcPowerOff"
APP_RUN_AT_NET_CONNECT "AppRunAtNetConnect"
APP_RUN_AT_NET_DISCONNECT "AppRunAtNetDisconnect"
APP_RUN_AT_DEVICE_CHANGE "AppRunDeviceChange"
APP_RUN_AT_IR_DISCOVERY "AppRunAtIrDiscovery"
APP_RUN_AT_RS232_DETECT "AppRunAtRs232Detect"
APP_RUN_AFTER_RESTORE "AppRunAfterRestore"
The string values in this table are processed as command line commands. In some cases, the part of the command line that follows the string is treated as a parameter.