Source code of Windows XP (NT5)
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.

107 lines
2.7 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. wssec.h
  5. Abstract:
  6. Private header file to be included by Workstation service modules that
  7. need to enforce security.
  8. Author:
  9. Rita Wong (ritaw) 19-Feb-1991
  10. Revision History:
  11. --*/
  12. #ifndef _WSSEC_INCLUDED_
  13. #define _WSSEC_INCLUDED_
  14. #include <secobj.h>
  15. //-------------------------------------------------------------------//
  16. // //
  17. // Object specific access masks //
  18. // //
  19. //-------------------------------------------------------------------//
  20. //
  21. // ConfigurationInfo specific access masks
  22. //
  23. #define WKSTA_CONFIG_GUEST_INFO_GET 0x0001
  24. #define WKSTA_CONFIG_USER_INFO_GET 0x0002
  25. #define WKSTA_CONFIG_ADMIN_INFO_GET 0x0004
  26. #define WKSTA_CONFIG_INFO_SET 0x0008
  27. #define WKSTA_CONFIG_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | \
  28. WKSTA_CONFIG_GUEST_INFO_GET | \
  29. WKSTA_CONFIG_USER_INFO_GET | \
  30. WKSTA_CONFIG_ADMIN_INFO_GET | \
  31. WKSTA_CONFIG_INFO_SET)
  32. //
  33. // MessageSend specific access masks
  34. //
  35. #define WKSTA_MESSAGE_SEND 0x0001
  36. #define WKSTA_MESSAGE_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | \
  37. WKSTA_MESSAGE_SEND)
  38. #if 0
  39. //
  40. // LogonSupport specific access masks
  41. //
  42. #define WKSTA_LOGON_REQUEST_BROADCAST 0x0001
  43. #define WKSTA_LOGON_DOMAIN_WRITE 0x0002
  44. #define WKSTA_LOGON_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | \
  45. WKSTA_LOGON_REQUEST_BROADCAST | \
  46. WKSTA_LOGON_DOMAIN_WRITE)
  47. #endif
  48. //
  49. // Object type names for audit alarm tracking
  50. //
  51. #define CONFIG_INFO_OBJECT TEXT("WkstaConfigurationInfo")
  52. #define MESSAGE_SEND_OBJECT TEXT("WkstaMessageSend")
  53. #if 0
  54. #define LOGON_SUPPORT_OBJECT TEXT("WkstaLogonSupport")
  55. #endif
  56. //
  57. // Security descriptors of workstation objects to control user accesses
  58. // to the workstation configuration information, sending messages, and the
  59. // logon support functions.
  60. //
  61. extern PSECURITY_DESCRIPTOR ConfigurationInfoSd;
  62. extern PSECURITY_DESCRIPTOR MessageSendSd;
  63. #if 0
  64. extern PSECURITY_DESCRIPTOR LogonSupportSd;
  65. #endif
  66. //
  67. // Generic mapping for each workstation object
  68. //
  69. extern GENERIC_MAPPING WsConfigInfoMapping;
  70. extern GENERIC_MAPPING WsMessageSendMapping;
  71. #if 0
  72. extern GENERIC_MAPPING WsLogonSupportMapping;
  73. #endif
  74. NET_API_STATUS
  75. WsCreateWkstaObjects(
  76. VOID
  77. );
  78. VOID
  79. WsDestroyWkstaObjects(
  80. VOID
  81. );
  82. #endif // ifndef _WSSEC_INCLUDED_