Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
2.8 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Scheduling Agent Service
  4. //
  5. // Microsoft Windows
  6. // Copyright (C) Microsoft Corporation, 1992 - 1996.
  7. //
  8. // File: sage.hxx
  9. //
  10. // Contents: System Agent (Sage) compatability defines. These are taken
  11. // from \\trango\slm\src\root\dev\inc\sage.h
  12. //
  13. //----------------------------------------------------------------------------
  14. #ifndef __SAGE_HXX__
  15. #define __SAGE_HXX__
  16. // Manifest constants
  17. #define MAXPATH 267
  18. #define MAXSETTINGS 256
  19. #define MAXCOMMANDLINE (MAXPATH + MAXSETTINGS)
  20. #define MAXCOMMENT 256
  21. #define CB_RESERVED 32
  22. // bit positions for excluding days of the week from a daily task
  23. #define EXCLUDE_SUN 1
  24. #define EXCLUDE_MON 2
  25. #define EXCLUDE_TUES 4
  26. #define EXCLUDE_WED 8
  27. #define EXCLUDE_THURS 16
  28. #define EXCLUDE_FRI 32
  29. #define EXCLUDE_SAT 64
  30. #pragma pack(1)
  31. typedef struct TaskInfo
  32. {
  33. unsigned long StructureSize;
  34. unsigned long Task_Identifier;
  35. unsigned long Sub_Task_Identifier;
  36. unsigned long Status;
  37. unsigned long Result;
  38. unsigned long Time_Granularity;
  39. unsigned long StopAfterTime;
  40. unsigned long TimeTillAlarm;
  41. unsigned long User_Idle;
  42. unsigned long Powered;
  43. unsigned long CreatorId;
  44. SYSTEMTIME BeginTime; //indefinite period start time
  45. SYSTEMTIME EndTime; //indefinite period end time
  46. SYSTEMTIME LastRunStart; //actual start time
  47. SYSTEMTIME LastRunEndScheduled; //planned termination time
  48. SYSTEMTIME LastTerminationTime; //actual termination time
  49. SYSTEMTIME DontRunUntil; //specific date to not start before
  50. SYSTEMTIME LastAlarmTime;
  51. SYSTEMTIME RESERVED1;
  52. SYSTEMTIME RESERVED2;
  53. STARTUPINFO StartupInfo;
  54. DWORD dwProcessId;
  55. DWORD dwThreadId;
  56. DWORD LockingProcess;
  57. unsigned long LockTime;
  58. DWORD fdwCreate;
  59. DWORD taskflags;
  60. char SystemTask;
  61. char TerminateAtRangeEnd;
  62. char StartupTask;
  63. char AlarmEnabled;
  64. char RunNow;
  65. char TerminateNoIdle;
  66. char Disabled;
  67. char TerminateNow;
  68. char RestartNoIdle;
  69. char CommandLine[MAXCOMMANDLINE];
  70. char Comment[MAXCOMMENT];
  71. char WorkingDirectory[MAXPATH];
  72. DWORD hProcess; //declare as dword so 16 bit apps get right size
  73. DWORD hThread;
  74. DWORD hTerminateThread;
  75. char ExcludeDaysVector;
  76. char Reserved[CB_RESERVED-12];
  77. } TaskInfo;
  78. #pragma pack()
  79. #endif // __SAGE_HXX__