Leaked source code of windows server 2003
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.

107 lines
2.5 KiB

  1. /*++ BUILD Version: 0006 // Increment this if a change has global effects
  2. Copyright (c) 1992-1999 Microsoft Corporation
  3. Module Name:
  4. newat.h
  5. Abstract:
  6. This file contains structures, function prototypes, and definitions
  7. for the new (cairo) schedule service API-s.
  8. Author:
  9. jim harriger (jimharr) 04 - february - 1994
  10. Environment:
  11. User Mode - Win32
  12. Portable to any flat, 32-bit environment. (Uses Win32 typedefs.)
  13. Requires ANSI C extensions: slash-slash comments, long external names.
  14. Notes:
  15. You must include NETCONS.H and LMAT.h before this file, since this
  16. file depends on values defined in NETCONS.H.
  17. Revision History:
  18. Jim Harriger (jimharr) 13 may 93
  19. -- added NetSchedule(foo)Ex Routines, for Cairo
  20. Jim Harriger (jimharr) 12 jul 94
  21. -- modified API structures for new multi-trigger functionality.
  22. --*/
  23. #ifndef _NEWAT_
  24. #define _NEWAT_
  25. #if _MSC_VER > 1000
  26. #pragma once
  27. #endif
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31. // structures for new ..Ex API's
  32. typedef struct _AT_TRIGGER_POINT {
  33. LARGE_INTEGER MinuteMask;
  34. DWORD HourMask;
  35. DWORD DaysOfMonth;
  36. USHORT DaysOfWeek;
  37. } AT_TRIGGER_POINT, *PAT_TRIGGER_POINT, *LPAT_TRIGGER_POINT;
  38. typedef struct _AT_INFO_EX {
  39. GUID UserProxy;
  40. LPWSTR Command;
  41. USHORT Flags;
  42. USHORT cTriggerPoints;
  43. AT_TRIGGER_POINT *atpTriggerPoints;
  44. } AT_INFO_EX, *PAT_INFO_EX, *LPAT_INFO_EX;
  45. typedef struct _AT_ENUM_EX {
  46. GUID UserProxy;
  47. LPWSTR Command;
  48. DWORD JobId;
  49. USHORT Flags;
  50. USHORT cTriggerPoints;
  51. AT_TRIGGER_POINT *atpTriggerPoints;
  52. } AT_ENUM_EX, *PAT_ENUM_EX, *LPAT_ENUM_EX;
  53. //
  54. // new API functions
  55. //
  56. NET_API_STATUS NET_API_FUNCTION
  57. NetScheduleJobAddEx(
  58. IN LPWSTR Servername OPTIONAL,
  59. IN LPBYTE Buffer,
  60. OUT LPDWORD JobId
  61. );
  62. NET_API_STATUS NET_API_FUNCTION
  63. NetScheduleJobEnumEx(
  64. IN LPWSTR Servername OPTIONAL,
  65. OUT LPBYTE * PointerToBuffer,
  66. IN DWORD PrefferedMaximumLength,
  67. OUT LPDWORD EntriesRead,
  68. OUT LPDWORD TotalEntries,
  69. IN OUT LPDWORD ResumeHandle
  70. );
  71. NET_API_STATUS NET_API_FUNCTION
  72. NetScheduleJobGetInfoEx(
  73. IN LPWSTR Servername OPTIONAL,
  74. IN DWORD JobId,
  75. OUT LPBYTE * PointerToBuffer
  76. );
  77. #ifdef __cplusplus
  78. }
  79. #endif
  80. #endif // _NEWAT_