public CE_NOTIFICATION_TRIGGER(NOTIFICATION_EVENT notificationEvent) { dwSize = (uint)Marshal.SizeOf(typeof(CE_NOTIFICATION_TRIGGER)); dwType = CNT_TYPE.CNT_EVENT; dwEvent = notificationEvent; lpszApplication = new SmartString(null); lpszArguments = new SmartString(null); startTime = DateTimeToSystemTime(DateTime.Now); endTime = DateTimeToSystemTime(DateTime.Now.AddDays(1)); }
public CE_NOTIFICATION_TRIGGER(DateTime start) { dwSize = (uint)Marshal.SizeOf(typeof(CE_NOTIFICATION_TRIGGER)); dwType = CNT_TYPE.CNT_TIME; dwEvent = NOTIFICATION_EVENT.NONE; lpszApplication = new SmartString(null); lpszArguments = new SmartString(null); startTime = DateTimeToSystemTime(start); endTime = new SYSTEMTIME(); }
public CE_NOTIFICATION_TRIGGER(string application, string arguments, NOTIFICATION_EVENT notificationEvent) { dwSize = (uint)Marshal.SizeOf(typeof(CE_NOTIFICATION_TRIGGER)); dwType = CNT_TYPE.CNT_EVENT; dwEvent = notificationEvent; lpszApplication = new SmartString(application); lpszArguments = new SmartString(arguments); startTime = DateTimeToSystemTime(DateTime.Now); endTime = new SYSTEMTIME(); }
public CE_NOTIFICATION_TRIGGER( NOTIFICATION_EVENT notificationEvent ) { dwSize = (uint)Marshal.SizeOf( typeof(CE_NOTIFICATION_TRIGGER) ); dwType = CNT_TYPE.CNT_EVENT; dwEvent = notificationEvent; lpszApplication = new SmartString( null ); lpszArguments = new SmartString( null ); startTime = DateTimeToSystemTime( DateTime.Now ); endTime = DateTimeToSystemTime( DateTime.Now.AddDays(1) ); }
public CE_NOTIFICATION_TRIGGER( string application, string arguments, NOTIFICATION_EVENT notificationEvent ) { dwSize = (uint)Marshal.SizeOf( typeof(CE_NOTIFICATION_TRIGGER) ); dwType = CNT_TYPE.CNT_EVENT; dwEvent = notificationEvent; lpszApplication = new SmartString(application); lpszArguments = new SmartString(arguments); startTime = DateTimeToSystemTime( DateTime.Now ); endTime = new SYSTEMTIME(); }
public CE_NOTIFICATION_TRIGGER( DateTime start ) { dwSize = (uint)Marshal.SizeOf( typeof(CE_NOTIFICATION_TRIGGER) ); dwType = CNT_TYPE.CNT_TIME; dwEvent = NOTIFICATION_EVENT.NONE; lpszApplication = new SmartString( null ); lpszArguments = new SmartString( null ); startTime = DateTimeToSystemTime( start ); endTime = new SYSTEMTIME(); }