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.

68 lines
1.5 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. pnpsec.c
  5. Abstract:
  6. This module contains definitions used with the Plug and Play manager
  7. security object.
  8. Author:
  9. James G. Cavalaris (jamesca) 05-Apr-2002
  10. Environment:
  11. User-mode only.
  12. Revision History:
  13. 05-Apr-2002 Jim Cavalaris (jamesca)
  14. Creation and initial implementation.
  15. --*/
  16. //
  17. // Audit subsystem and object names
  18. //
  19. #define PLUGPLAY_SUBSYSTEM_NAME L"PlugPlayManager"
  20. #define PLUGPLAY_SECURITY_OBJECT_NAME L"PlugPlaySecurityObject"
  21. #define PLUGPLAY_SECURITY_OBJECT_TYPE L"Security"
  22. //
  23. // PlugPlayManager object specific access rights
  24. //
  25. #define PLUGPLAY_READ (0x0001)
  26. #define PLUGPLAY_WRITE (0x0002)
  27. #define PLUGPLAY_EXECUTE (0x0004)
  28. #define PLUGPLAY_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | \
  29. PLUGPLAY_READ | \
  30. PLUGPLAY_WRITE | \
  31. PLUGPLAY_EXECUTE)
  32. //
  33. // Structure that describes the mapping of Generic access rights to object
  34. // specific access rights for the Plug and Play Manager security object.
  35. //
  36. #define PLUGPLAY_GENERIC_MAPPING { \
  37. STANDARD_RIGHTS_READ | \
  38. PLUGPLAY_READ, \
  39. STANDARD_RIGHTS_WRITE | \
  40. PLUGPLAY_WRITE, \
  41. STANDARD_RIGHTS_EXECUTE | \
  42. PLUGPLAY_EXECUTE, \
  43. PLUGPLAY_ALL_ACCESS }