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.

88 lines
2.3 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. //
  39. // Object type names for audit alarm tracking
  40. //
  41. #define CONFIG_INFO_OBJECT TEXT("WkstaConfigurationInfo")
  42. #define MESSAGE_SEND_OBJECT TEXT("WkstaMessageSend")
  43. //
  44. // Security descriptors of workstation objects to control user accesses
  45. // to the workstation configuration information, sending messages, and the
  46. // logon support functions.
  47. //
  48. extern PSECURITY_DESCRIPTOR ConfigurationInfoSd;
  49. extern PSECURITY_DESCRIPTOR MessageSendSd;
  50. //
  51. // Generic mapping for each workstation object
  52. //
  53. extern GENERIC_MAPPING WsConfigInfoMapping;
  54. extern GENERIC_MAPPING WsMessageSendMapping;
  55. NET_API_STATUS
  56. WsCreateWkstaObjects(
  57. VOID
  58. );
  59. VOID
  60. WsDestroyWkstaObjects(
  61. VOID
  62. );
  63. #endif // ifndef _WSSEC_INCLUDED_