Artifact c09edf3182df2a763d4a5f691d104957bbc80415
- File
src/win32/lmat.d
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
The problem was __gshared. Replacing it with TLS fixed the issue. Remaining problem is that "hack.d"'s CloseHandle hack is not working anymore.
(user: kinaba) [annotate]
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
/***********************************************************************\ * lmat.d * * * * Windows API header module * * * * Translated from MinGW Windows headers * * * * Placed into public domain * \***********************************************************************/ module win32.lmat; 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*); }