lmat.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. #define JOB_RUN_PERIODICALLY 0x01
  12. #define JOB_EXEC_ERROR 0x02
  13. #define JOB_RUNS_TODAY 0x04
  14. #define JOB_ADD_CURRENT_DATE 0x08
  15. #define JOB_NONINTERACTIVE 0x10
  16. #define JOB_INPUT_FLAGS (JOB_RUN_PERIODICALLY | JOB_ADD_CURRENT_DATE | JOB_NONINTERACTIVE)
  17. #define JOB_OUTPUT_FLAGS (JOB_RUN_PERIODICALLY | JOB_EXEC_ERROR | JOB_RUNS_TODAY | JOB_NONINTERACTIVE)
  18. typedef struct _AT_INFO {
  19. DWORD_PTR JobTime;
  20. DWORD DaysOfMonth;
  21. UCHAR DaysOfWeek;
  22. UCHAR Flags;
  23. LPWSTR Command;
  24. } AT_INFO,*PAT_INFO,*LPAT_INFO;
  25. typedef struct _AT_ENUM {
  26. DWORD JobId;
  27. DWORD_PTR JobTime;
  28. DWORD DaysOfMonth;
  29. UCHAR DaysOfWeek;
  30. UCHAR Flags;
  31. LPWSTR Command;
  32. } AT_ENUM,*PAT_ENUM,*LPAT_ENUM;
  33. NET_API_STATUS WINAPI NetScheduleJobAdd(LPCWSTR Servername,LPBYTE Buffer,LPDWORD JobId);
  34. NET_API_STATUS WINAPI NetScheduleJobDel(LPCWSTR Servername,DWORD MinJobId,DWORD MaxJobId);
  35. NET_API_STATUS WINAPI NetScheduleJobEnum(LPCWSTR Servername,LPBYTE *PointerToBuffer,DWORD PrefferedMaximumLength,LPDWORD EntriesRead,LPDWORD TotalEntries,LPDWORD ResumeHandle);
  36. NET_API_STATUS WINAPI NetScheduleJobGetInfo(LPCWSTR Servername,DWORD JobId,LPBYTE *PointerToBuffer);
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40. #endif