|
::<code>SetSystemPowerState(null, POWER_STATE_RESET, POWER_FORCE);</code> |
|
::<code>SetSystemPowerState(null, POWER_STATE_RESET, POWER_FORCE);</code> |
- |
'''How do I run my application on startup?'''
|
+ |
'''How do I run my application after a warm reset?'''
|
|
:There are various ways. One way involves editing the registry (see this [http://msdn.microsoft.com/en-us/library/aa448482%28v=MSDN.10%29.aspx link]), where you can then do a backup of your device, and have it (and your application) persist across cold resets. Another way, which is very simple, is to just place a shortcut to your application in \FlashDisk\Startup\warm\. |
|
:There are various ways. One way involves editing the registry (see this [http://msdn.microsoft.com/en-us/library/aa448482%28v=MSDN.10%29.aspx link]), where you can then do a backup of your device, and have it (and your application) persist across cold resets. Another way, which is very simple, is to just place a shortcut to your application in \FlashDisk\Startup\warm\. |