Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

CeRunAppAtEvent (coredll)
 

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 CeRunAppAtEvent in other DLLs exists, click on Find References to the right.

.
Summary
This function starts running an application when a specified event occurs.

C# Signature:

[DllImport("coredll.dll", EntryPoint="CeRunAppAtEvent", SetLastError=true)]  
private static extern bool CeRunAppAtEvent(string pwszAppName, int lWhichEvent);

VB Signature:

     Public Declare Function CeRunAppAtEvent Lib "coredll" _
       (ByVal AppName As String, ByRef lWhichEvent As Integer) As Boolean

Declare Function CeRunAppAtEvent Lib "coredll.dll" (TODO) As TODO

Parameters:

pwszAppName

[ in ] Pointer to a null-terminated string that specifies the name of the application to be started.

lWhichEvent

[ in ] Event at which the application is to be started. It is one of the following values:

Value Description Value
NOTIFICATION_EVENT_NONE No events — remove all event registrations for this application. 0
NOTIFICATION_EVENT_TIME_CHANGE When the system time is changed. 1
NOTIFICATION_EVENT_SYNC_END When data synchronization finishes. 2
NOTIFICATION_EVENT_DEVICE_CHANGE When a PC Card device is changed. 7
NOTIFICATION_EVENT_RS232_DETECTED When an RS232 connection is made. 9
NOTIFICATION_EVENT_RS232_DETECTED When an RS232 connection is made. 9
NOTIFICATION_EVENT_RESTORE_END When a full device data restore completes. 10
NOTIFICATION_EVENT_WAKEUP When the device wakes up. 11
NOTIFICATION_EVENT_TZ_CHANGE When the time zone is changed. 12

Return Values:

TRUE indicates success. FALSE indicates failure.

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

Taken from openNetCF in OpenNETCF.Win32.Notify

Taken from openNetCF in OpenNETCF.Win32.Notify

NOTIFICATION_EVENT_RS232_DETECTED is also raised when connecting the device to USB.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation

Please edit this page!

Do you have...

  • helpful tips or sample code to share for using this API in managed code?
  • corrections to the existing content?
  • variations of the signature you want to share?
  • additional languages you want to include?

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).

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions