CeRunAppAtEvent (coredll)
Last changed: -41.200.178.200

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

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
NOTIFICATION_EVENT_DEVICE_CHANGE When a PC Card device is changed.
NOTIFICATION_EVENT_NONE No events — remove all event registrations for this application.
NOTIFICATION_EVENT_RESTORE_END When a full device data restore completes.
NOTIFICATION_EVENT_RS232_DETECTED When an RS232 connection is made.
NOTIFICATION_EVENT_SYNC_END When data synchronization finishes.
NOTIFICATION_EVENT_TIME_CHANGE When the system time is changed.
NOTIFICATION_EVENT_TZ_CHANGE When the time zone is changed.
NOTIFICATION_EVENT_WAKEUP When the device wakes up.

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

NOTIFICATION_EVENT_RS232_DETECTED is also raised when connecting the device to USB.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation