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.

132 lines
2.9 KiB

  1. /*++
  2. Copyright (c) 1997-1998 Microsoft Corporation
  3. Module Name:
  4. sddlp.h
  5. Abstract:
  6. This module defines private headers for SDDL conversions routines
  7. Revision History:
  8. --*/
  9. #include <sddl.h>
  10. #ifndef __SDDLP_H__
  11. #define __SDDLP_H__
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #if(_WIN32_WINNT >= 0x0500)
  16. WINADVAPI
  17. BOOL
  18. WINAPI
  19. ConvertStringSDToSDRootDomainA(
  20. IN PSID RootDomainSid OPTIONAL,
  21. IN LPCSTR StringSecurityDescriptor,
  22. IN DWORD StringSDRevision,
  23. OUT PSECURITY_DESCRIPTOR *SecurityDescriptor,
  24. OUT PULONG SecurityDescriptorSize OPTIONAL
  25. );
  26. WINADVAPI
  27. BOOL
  28. WINAPI
  29. ConvertStringSDToSDRootDomainW(
  30. IN PSID RootDomainSid OPTIONAL,
  31. IN LPCWSTR StringSecurityDescriptor,
  32. IN DWORD StringSDRevision,
  33. OUT PSECURITY_DESCRIPTOR *SecurityDescriptor,
  34. OUT PULONG SecurityDescriptorSize OPTIONAL
  35. );
  36. #ifdef UNICODE
  37. #define ConvertStringSDToSDRootDomain ConvertStringSDToSDRootDomainW
  38. #else
  39. #define ConvertStringSDToSDRootDomain ConvertStringSDToSDRootDomainA
  40. #endif // !UNICODE
  41. WINADVAPI
  42. BOOL
  43. WINAPI
  44. ConvertSDToStringSDRootDomainA(
  45. IN PSID RootDomainSid OPTIONAL,
  46. IN PSECURITY_DESCRIPTOR SecurityDescriptor,
  47. IN DWORD RequestedStringSDRevision,
  48. IN SECURITY_INFORMATION SecurityInformation,
  49. OUT LPSTR *StringSecurityDescriptor OPTIONAL,
  50. OUT PULONG StringSecurityDescriptorLen OPTIONAL
  51. );
  52. WINADVAPI
  53. BOOL
  54. WINAPI
  55. ConvertSDToStringSDRootDomainW(
  56. IN PSID RootDomainSid OPTIONAL,
  57. IN PSECURITY_DESCRIPTOR SecurityDescriptor,
  58. IN DWORD RequestedStringSDRevision,
  59. IN SECURITY_INFORMATION SecurityInformation,
  60. OUT LPWSTR *StringSecurityDescriptor OPTIONAL,
  61. OUT PULONG StringSecurityDescriptorLen OPTIONAL
  62. );
  63. #ifdef UNICODE
  64. #define ConvertSDToStringSDRootDomain ConvertSDToStringSDRootDomainW
  65. #else
  66. #define ConvertSDToStringSDRootDomain ConvertSDToStringSDRootDomainA
  67. #endif // !UNICODE
  68. WINADVAPI
  69. BOOL
  70. WINAPI
  71. ConvertStringSDToSDDomainA(
  72. IN PSID DomainSid,
  73. IN PSID RootDomainSid OPTIONAL,
  74. IN LPCSTR StringSecurityDescriptor,
  75. IN DWORD StringSDRevision,
  76. OUT PSECURITY_DESCRIPTOR *SecurityDescriptor,
  77. OUT PULONG SecurityDescriptorSize OPTIONAL
  78. );
  79. WINADVAPI
  80. BOOL
  81. WINAPI
  82. ConvertStringSDToSDDomainW(
  83. IN PSID DomainSid,
  84. IN PSID RootDomainSid OPTIONAL,
  85. IN LPCWSTR StringSecurityDescriptor,
  86. IN DWORD StringSDRevision,
  87. OUT PSECURITY_DESCRIPTOR *SecurityDescriptor,
  88. OUT PULONG SecurityDescriptorSize OPTIONAL
  89. );
  90. NTSTATUS
  91. SddlpAnsiStringToUnicodeString(
  92. OUT PUNICODE_STRING DestinationString,
  93. IN PANSI_STRING SourceString
  94. );
  95. #ifdef UNICODE
  96. #define ConvertStringSDToSDDomain ConvertStringSDToSDDomainW
  97. #else
  98. #define ConvertStringSDToSDDomain ConvertStringSDToSDDomainA
  99. #endif // !UNICODE
  100. #endif /* _WIN32_WINNT >= 0x0500 */
  101. #ifdef __cplusplus
  102. }
  103. #endif
  104. #endif // endif __SDDLP_H__