mirror of
https://github.com/QB64Official/qb64.git
synced 2024-08-22 03:15:07 +00:00
47 lines
1.5 KiB
C
47 lines
1.5 KiB
C
/**
|
|
* This file has no copyright assigned and is placed in the Public Domain.
|
|
* This file is part of the mingw-w64 runtime package.
|
|
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
|
*/
|
|
#ifndef _LMAT_
|
|
#define _LMAT_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define JOB_RUN_PERIODICALLY 0x01
|
|
#define JOB_EXEC_ERROR 0x02
|
|
#define JOB_RUNS_TODAY 0x04
|
|
#define JOB_ADD_CURRENT_DATE 0x08
|
|
#define JOB_NONINTERACTIVE 0x10
|
|
|
|
#define JOB_INPUT_FLAGS (JOB_RUN_PERIODICALLY | JOB_ADD_CURRENT_DATE | JOB_NONINTERACTIVE)
|
|
#define JOB_OUTPUT_FLAGS (JOB_RUN_PERIODICALLY | JOB_EXEC_ERROR | JOB_RUNS_TODAY | JOB_NONINTERACTIVE)
|
|
|
|
typedef struct _AT_INFO {
|
|
DWORD_PTR JobTime;
|
|
DWORD DaysOfMonth;
|
|
UCHAR DaysOfWeek;
|
|
UCHAR Flags;
|
|
LPWSTR Command;
|
|
} AT_INFO,*PAT_INFO,*LPAT_INFO;
|
|
|
|
typedef struct _AT_ENUM {
|
|
DWORD JobId;
|
|
DWORD_PTR JobTime;
|
|
DWORD DaysOfMonth;
|
|
UCHAR DaysOfWeek;
|
|
UCHAR Flags;
|
|
LPWSTR Command;
|
|
} AT_ENUM,*PAT_ENUM,*LPAT_ENUM;
|
|
|
|
NET_API_STATUS WINAPI NetScheduleJobAdd(LPCWSTR Servername,LPBYTE Buffer,LPDWORD JobId);
|
|
NET_API_STATUS WINAPI NetScheduleJobDel(LPCWSTR Servername,DWORD MinJobId,DWORD MaxJobId);
|
|
NET_API_STATUS WINAPI NetScheduleJobEnum(LPCWSTR Servername,LPBYTE *PointerToBuffer,DWORD PrefferedMaximumLength,LPDWORD EntriesRead,LPDWORD TotalEntries,LPDWORD ResumeHandle);
|
|
NET_API_STATUS WINAPI NetScheduleJobGetInfo(LPCWSTR Servername,DWORD JobId,LPBYTE *PointerToBuffer);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|