1/**
 2 * This file has no copyright assigned and is placed in the Public Domain.
 3 * This file is part of the mingw-w64 runtime package.
 4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 5 */
 6#ifndef _LMAT_
 7#define _LMAT_
 8
 9#ifdef __cplusplus
10extern "C" {
11#endif
12
13#define JOB_RUN_PERIODICALLY 0x01
14#define JOB_EXEC_ERROR 0x02
15#define JOB_RUNS_TODAY 0x04
16#define JOB_ADD_CURRENT_DATE 0x08
17#define JOB_NONINTERACTIVE 0x10
18
19#define JOB_INPUT_FLAGS (JOB_RUN_PERIODICALLY | JOB_ADD_CURRENT_DATE | JOB_NONINTERACTIVE)
20#define JOB_OUTPUT_FLAGS (JOB_RUN_PERIODICALLY | JOB_EXEC_ERROR | JOB_RUNS_TODAY | JOB_NONINTERACTIVE)
21
22  typedef struct _AT_INFO {
23    DWORD_PTR JobTime;
24    DWORD DaysOfMonth;
25    UCHAR DaysOfWeek;
26    UCHAR Flags;
27    LPWSTR Command;
28  } AT_INFO,*PAT_INFO,*LPAT_INFO;
29
30  typedef struct _AT_ENUM {
31    DWORD JobId;
32    DWORD_PTR JobTime;
33    DWORD DaysOfMonth;
34    UCHAR DaysOfWeek;
35    UCHAR Flags;
36    LPWSTR Command;
37  } AT_ENUM,*PAT_ENUM,*LPAT_ENUM;
38
39  NET_API_STATUS WINAPI NetScheduleJobAdd(LPCWSTR Servername,LPBYTE Buffer,LPDWORD JobId);
40  NET_API_STATUS WINAPI NetScheduleJobDel(LPCWSTR Servername,DWORD MinJobId,DWORD MaxJobId);
41  NET_API_STATUS WINAPI NetScheduleJobEnum(LPCWSTR Servername,LPBYTE *PointerToBuffer,DWORD PrefferedMaximumLength,LPDWORD EntriesRead,LPDWORD TotalEntries,LPDWORD ResumeHandle);
42  NET_API_STATUS WINAPI NetScheduleJobGetInfo(LPCWSTR Servername,DWORD JobId,LPBYTE *PointerToBuffer);
43
44#ifdef __cplusplus
45}
46#endif
47#endif