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.

71 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. msgsec.h
  5. Abstract:
  6. Private header file to be included by Messenger service modules that
  7. need to enforce security.
  8. Author:
  9. Dan Lafferty (danl) 20-Mar-1991
  10. Environment:
  11. User Mode -Win32
  12. Revision History:
  13. 07-Aug-1991 danl
  14. created
  15. --*/
  16. #ifndef _MSGSEC_INCLUDED
  17. #define _MSGSEC_INCLUDED
  18. #include <secobj.h>
  19. //
  20. // Object specific access masks
  21. //
  22. #define MSGR_MESSAGE_NAME_INFO_GET 0x0001
  23. #define MSGR_MESSAGE_NAME_ENUM 0x0002
  24. #define MSGR_MESSAGE_NAME_ADD 0x0004
  25. #define MSGR_MESSAGE_NAME_DEL 0x0008
  26. #define MSGR_MESSAGE_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | \
  27. MSGR_MESSAGE_NAME_INFO_GET | \
  28. MSGR_MESSAGE_NAME_ENUM | \
  29. MSGR_MESSAGE_NAME_ADD | \
  30. MSGR_MESSAGE_NAME_DEL)
  31. //
  32. // Object type name for audit alarm tracking
  33. //
  34. #define MESSAGE_NAME_OBJECT TEXT("MsgrNameObject")
  35. //
  36. // Security descriptor for the messenger name object.
  37. //
  38. extern PSECURITY_DESCRIPTOR MessageNameSd;
  39. //
  40. // Generic mapping for the messenger name object
  41. //
  42. extern GENERIC_MAPPING MsgMessageNameMapping;
  43. NET_API_STATUS
  44. MsgCreateMessageNameObject(
  45. VOID
  46. );
  47. #endif // ifndef _MSGSEC_INCLUDED