<p>How do you schedule a Windows Mobile application to periodically start up to perform some background processing.  For example, assume I'm writing an email client and want to check for email every hour, regardless of whether my app is running at the time.</p>

<p>The app is a native C/C++ app on Windows Mobile 5.0 or later.</p>

[{'answer_id': 48466, 'author': 'quick_dry', 'author_id': 3716, 'author_profile': 'https://Stackoverflow.com/users/3716', 'pm_score': 3, 'selected': True, 'text': "<p>the function you need is:</p>\n\n<p><code>CeRunAppAtTime( appname, time )</code></p>\n\n<p>that isn't the exact signature, there is also <code>CeRunAppAtEvent</code>, they should both be in the MSDN docs (but linking is useless the way MSDN urls always change)</p>\n\n<p>The normal way to use these (and <code>RunAppAtTime</code> in the managed world via <code>OpenNETCF.Win32.Notify</code> ) is that for periodic execution, every time your app runs, it will rescedule itself for its next run-time.</p>\n\n<p>If your app is running, the new instance should bring up the already running process. If it isn't running, then it is just like starting up normally - from mmory it passes some argument to the process so it can tell it is being scheduled and not started some other way.</p>\n"}, {'answer_id': 286920, 'author': 'Steven', 'author_id': 27101, 'author_profile': 'https://Stackoverflow.com/users/27101', 'pm_score': 2, 'selected': False, 'text': '<p>Use CeSetUserNotificationEx instead of CeRunAppAtTime (as this is deprecated).</p>\n'}]
['https://Stackoverflow.com/questions/48446', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2716/']