B
Balch
Does the SetUserNotification function in the SDF work for the
NetConnect event. I am trying to call it with the following code and
all I get is an exception:
UserNotificationTrigger trigger = new UserNotificationTrigger();
trigger.Application = m_app.AppFolder + "Loader.exe";
trigger.Arguments = "-NetConnect";
trigger.Type = NotificationType.Event;
trigger.Event = NotificationEvent.NetConnect;
UserNotification notification = new UserNotification();
notification.Action = 0;
int nConnEventHandle = Notify.SetUserNotification(trigger,
notification);
I can successfully call the Notify.SetUserNotification using similiar
code with a NotificationType of Time and with valid StartTime and
EndTime values.
Thank you for your help,
Balch
NetConnect event. I am trying to call it with the following code and
all I get is an exception:
UserNotificationTrigger trigger = new UserNotificationTrigger();
trigger.Application = m_app.AppFolder + "Loader.exe";
trigger.Arguments = "-NetConnect";
trigger.Type = NotificationType.Event;
trigger.Event = NotificationEvent.NetConnect;
UserNotification notification = new UserNotification();
notification.Action = 0;
int nConnEventHandle = Notify.SetUserNotification(trigger,
notification);
I can successfully call the Notify.SetUserNotification using similiar
code with a NotificationType of Time and with valid StartTime and
EndTime values.
Thank you for your help,
Balch