Smart Device Functions:
Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than coredll, prefix the name with the module name and a period.
coredll is for smart devices, not desktop Windows. Therefore, this information only applies to code using the .NET Compact Framework. To see if information for CeRunAppAtTime in other DLLs exists, click on Find References to the right.
[DllImport("coredll.dll", EntryPoint="CeRunAppAtTime", SetLastError=true)]
Public Declare Function CeRunAppAtTime Lib "coredll" _
User-Defined Types (VB):
Public Structure SYSTEMTIME
Alternative Managed API:
In VB, function will return "true" if successful when adding app to run. However, it returns a "false" when cancelling the app even though the event is successfully cancelled. I'm guessing this is due to the systemtime structure being passed by reference and in this case references nothing. See sample code below. (VB .NET CF)
Tips & Tricks:
While this wakes the device, the screen may remain powered off. Combine with SetSystemPowerState truly wake up everything.
Also, if the app is making a call to wake itself back up, you can get the full path and appname with system.reflection.assembly. See code below for example.
VB Sample Code:
Dim FullAppName As String = System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase
This function creates a new user notification or modifies an existing one.
9/3/2008 8:52:39 AM - Dr. Spack-22.214.171.124
Controls the overall device power state
9/22/2008 7:46:50 AM - -126.96.36.199
Please edit this page!
Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).