| 1 |
#ifndef _LMAT_H |
| 2 |
#define _LMAT_H |
| 3 |
#if __GNUC__ >=3 |
| 4 |
#pragma GCC system_header |
| 5 |
#endif |
| 6 |
|
| 7 |
#ifdef __cplusplus |
| 8 |
extern "C" { |
| 9 |
#endif |
| 10 |
#define JOB_RUN_PERIODICALLY 1 |
| 11 |
#define JOB_EXEC_ERROR 2 |
| 12 |
#define JOB_RUNS_TODAY 4 |
| 13 |
#define JOB_ADD_CURRENT_DATE 8 |
| 14 |
#define JOB_NONINTERACTIVE 16 |
| 15 |
#define JOB_INPUT_FLAGS (JOB_RUN_PERIODICALLY|JOB_ADD_CURRENT_DATE|JOB_NONINTERACTIVE) |
| 16 |
#define JOB_OUTPUT_FLAGS (JOB_RUN_PERIODICALLY|JOB_EXEC_ERROR|JOB_RUNS_TODAY|JOB_NONINTERACTIVE) |
| 17 |
typedef struct _AT_ENUM { |
| 18 |
DWORD JobId; |
| 19 |
DWORD JobTime; |
| 20 |
DWORD DaysOfMonth; |
| 21 |
UCHAR DaysOfWeek; |
| 22 |
UCHAR Flags; |
| 23 |
LPWSTR Command; |
| 24 |
} AT_ENUM,*PAT_ENUM,*LPAT_ENUM; |
| 25 |
typedef struct _AT_INFO { |
| 26 |
DWORD JobTime; |
| 27 |
DWORD DaysOfMonth; |
| 28 |
UCHAR DaysOfWeek; |
| 29 |
UCHAR Flags; |
| 30 |
LPWSTR Command; |
| 31 |
} AT_INFO,*PAT_INFO,*LPAT_INFO; |
| 32 |
NET_API_STATUS WINAPI NetScheduleJobAdd(LPWSTR,PBYTE,LPDWORD); |
| 33 |
NET_API_STATUS WINAPI NetScheduleJobDel(LPWSTR,DWORD,DWORD); |
| 34 |
NET_API_STATUS WINAPI NetScheduleJobEnum(LPWSTR,PBYTE*,DWORD,PDWORD,PDWORD,PDWORD); |
| 35 |
NET_API_STATUS WINAPI NetScheduleJobGetInfo(LPWSTR,DWORD,PBYTE*); |
| 36 |
#ifdef __cplusplus |
| 37 |
} |
| 38 |
#endif |
| 39 |
#endif |