|
|
1.1 root 1: /*++ BUILD Version: 0006 // Increment this if a change has global effects
2:
3: Copyright (c) 1992 Microsoft Corporation
4:
5: Module Name:
6:
7: lmat.h
8:
9: Abstract:
10:
11: This file contains structures, function prototypes, and definitions
12: for the schedule service API-s.
13:
14: Author:
15:
16: Vladimir Z. Vulovic (vladimv) 06 - November - 1992
17:
18: Environment:
19:
20: User Mode - Win32
21: Portable to any flat, 32-bit environment. (Uses Win32 typedefs.)
22: Requires ANSI C extensions: slash-slash comments, long external names.
23:
24: Notes:
25:
26: You must include NETCONS.H before this file, since this file depends
27: on values defined in NETCONS.H.
28:
29: Revision History:
30:
31: --*/
32:
33: #ifndef _LMAT_
34: #define _LMAT_
35:
36: #ifdef __cplusplus
37: extern "C" {
38: #endif
39:
40: //
41: // The following bits are used with Flags field in structures below.
42: //
43:
44: //
45: // Do we exec programs for this job periodically (/EVERY switch)
46: // or one time (/NEXT switch).
47: //
48: #define JOB_RUN_PERIODICALLY 0x01 // set if EVERY
49:
50:
51: //
52: // Was there an error last time we tried to exec a program on behalf of
53: // this job.
54: // This flag is meaningfull on output only!
55: //
56: #define JOB_EXEC_ERROR 0x02 // set if error
57:
58: //
59: // Will this job run today or tomorrow.
60: // This flag is meaningfull on output only!
61: //
62: #define JOB_RUNS_TODAY 0x04 // set if today
63:
64: //
65: // Add current day of the month to DaysOfMonth input.
66: // This flag is meaningfull on input only!
67: //
68: #define JOB_ADD_CURRENT_DATE 0x08 // set if to add current date
69:
70:
71: #define JOB_INPUT_FLAGS ( JOB_RUN_PERIODICALLY | \
72: JOB_ADD_CURRENT_DATE )
73:
74: #define JOB_OUTPUT_FLAGS ( JOB_RUN_PERIODICALLY | \
75: JOB_EXEC_ERROR | \
76: JOB_RUNS_TODAY )
77:
78:
79:
80: typedef struct _AT_INFO {
81: DWORD JobTime;
82: DWORD DaysOfMonth;
83: UCHAR DaysOfWeek;
84: UCHAR Flags;
85: LPWSTR Command;
86: } AT_INFO, *PAT_INFO, *LPAT_INFO;
87:
88: typedef struct _AT_ENUM {
89: DWORD JobId;
90: DWORD JobTime;
91: DWORD DaysOfMonth;
92: UCHAR DaysOfWeek;
93: UCHAR Flags;
94: LPWSTR Command;
95: } AT_ENUM, *PAT_ENUM, *LPAT_ENUM;
96:
97: NET_API_STATUS NET_API_FUNCTION
98: NetScheduleJobAdd(
99: IN LPWSTR Servername OPTIONAL,
100: IN LPBYTE Buffer,
101: OUT LPDWORD JobId
102: );
103:
104: NET_API_STATUS NET_API_FUNCTION
105: NetScheduleJobDel(
106: IN LPWSTR Servername OPTIONAL,
107: IN DWORD MinJobId,
108: IN DWORD MaxJobId
109: );
110:
111: NET_API_STATUS NET_API_FUNCTION
112: NetScheduleJobEnum(
113: IN LPWSTR Servername OPTIONAL,
114: OUT LPBYTE * PointerToBuffer,
115: IN DWORD PrefferedMaximumLength,
116: OUT LPDWORD EntriesRead,
117: OUT LPDWORD TotalEntries,
118: IN OUT LPDWORD ResumeHandle
119: );
120:
121: NET_API_STATUS NET_API_FUNCTION
122: NetScheduleJobGetInfo(
123: IN LPWSTR Servername OPTIONAL,
124: IN DWORD JobId,
125: OUT LPBYTE * PointerToBuffer
126: );
127:
128: #ifdef __cplusplus
129: }
130: #endif
131:
132: #endif // _LMAT_
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.