mirror of https://github.com/buggins/dlangui.git
52 lines
1.8 KiB
D
52 lines
1.8 KiB
D
/***********************************************************************\
|
|
* lmat.d *
|
|
* *
|
|
* Windows API header module *
|
|
* *
|
|
* Translated from MinGW Windows headers *
|
|
* *
|
|
* Placed into public domain *
|
|
\***********************************************************************/
|
|
module win32.lmat;
|
|
version(Windows):
|
|
pragma(lib, "netapi32");
|
|
|
|
private import win32.lmcons, win32.windef;
|
|
|
|
const JOB_RUN_PERIODICALLY = 1;
|
|
const JOB_EXEC_ERROR = 2;
|
|
const JOB_RUNS_TODAY = 4;
|
|
const JOB_ADD_CURRENT_DATE = 8;
|
|
const JOB_NONINTERACTIVE = 16;
|
|
const JOB_INPUT_FLAGS = JOB_RUN_PERIODICALLY | JOB_ADD_CURRENT_DATE
|
|
| JOB_NONINTERACTIVE;
|
|
const JOB_OUTPUT_FLAGS = JOB_RUN_PERIODICALLY | JOB_EXEC_ERROR
|
|
| JOB_RUNS_TODAY | JOB_NONINTERACTIVE;
|
|
|
|
struct AT_ENUM {
|
|
DWORD JobId;
|
|
DWORD JobTime;
|
|
DWORD DaysOfMonth;
|
|
UCHAR DaysOfWeek;
|
|
UCHAR Flags;
|
|
LPWSTR Command;
|
|
}
|
|
alias AT_ENUM* PAT_ENUM, LPAT_ENUM;
|
|
|
|
struct AT_INFO {
|
|
DWORD JobTime;
|
|
DWORD DaysOfMonth;
|
|
UCHAR DaysOfWeek;
|
|
UCHAR Flags;
|
|
LPWSTR Command;
|
|
}
|
|
alias AT_INFO* PAT_INFO, LPAT_INFO;
|
|
|
|
extern (Windows) {
|
|
NET_API_STATUS NetScheduleJobAdd(LPWSTR, PBYTE, LPDWORD);
|
|
NET_API_STATUS NetScheduleJobDel(LPWSTR, DWORD, DWORD);
|
|
NET_API_STATUS NetScheduleJobEnum(LPWSTR, PBYTE*, DWORD, PDWORD, PDWORD,
|
|
PDWORD);
|
|
NET_API_STATUS NetScheduleJobGetInfo(LPWSTR, DWORD, PBYTE*);
|
|
}
|