Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Scheduling Agent Service
  4. //
  5. // Microsoft Windows
  6. // Copyright (C) Microsoft Corporation, 1992 - 1996.
  7. //
  8. // File: atsec.hxx
  9. //
  10. // Contents: Net Schedule API access checking routine definitions.
  11. //
  12. // History: 30-May-96 EricB created.
  13. //
  14. //-----------------------------------------------------------------------------
  15. //
  16. // Object specific access masks
  17. //
  18. #define AT_JOB_ADD 0x0001
  19. #define AT_JOB_DEL 0x0002
  20. #define AT_JOB_ENUM 0x0004
  21. #define AT_JOB_GET_INFO 0x0008
  22. //
  23. // Registry constants for allowing Server Operators permission to use the
  24. // AT/NetSchedule service.
  25. //
  26. const WCHAR SCH_LSA_REGISTRY_PATH[] = L"System\\CurrentControlSet\\Control\\Lsa";
  27. const WCHAR SCH_LSA_SUBMIT_CONTROL[] = L"SubmitControl";
  28. const DWORD SCH_SERVER_OPS = 0x00000001;
  29. //
  30. // Prototypes.
  31. //
  32. NET_API_STATUS AtCheckSecurity(ACCESS_MASK DesiredAccess);
  33. NET_API_STATUS AtCreateSecurityObject(VOID);
  34. void AtDeleteSecurityObject(VOID);