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.

101 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1994 Microsoft Corporation
  3. Module Name:
  4. proto.h
  5. Abstract:
  6. Contains prototype definitions for various locally defined functions.
  7. Author:
  8. Madan Appiah (madana) 19-Sep-1995
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #ifndef _PROTO_H_
  14. #define _PROTO_H_
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. PVOID
  19. INetpMemoryAllocate(
  20. DWORD Size
  21. );
  22. VOID
  23. INetpMemoryFree(
  24. PVOID Memory
  25. );
  26. DWORD
  27. INetpInitializeAllowedAce(
  28. IN PACCESS_ALLOWED_ACE AllowedAce,
  29. IN USHORT AceSize,
  30. IN BYTE InheritFlags,
  31. IN BYTE AceFlags,
  32. IN ACCESS_MASK Mask,
  33. IN PSID AllowedSid
  34. );
  35. DWORD
  36. INetpInitializeDeniedAce(
  37. IN PACCESS_DENIED_ACE DeniedAce,
  38. IN USHORT AceSize,
  39. IN BYTE InheritFlags,
  40. IN BYTE AceFlags,
  41. IN ACCESS_MASK Mask,
  42. IN PSID DeniedSid
  43. );
  44. DWORD
  45. NetpInitializeAuditAce(
  46. IN PACCESS_ALLOWED_ACE AuditAce,
  47. IN USHORT AceSize,
  48. IN BYTE InheritFlags,
  49. IN BYTE AceFlags,
  50. IN ACCESS_MASK Mask,
  51. IN PSID AuditSid
  52. );
  53. DWORD
  54. INetpAllocateAndInitializeSid(
  55. OUT PSID *Sid,
  56. IN PSID_IDENTIFIER_AUTHORITY IdentifierAuthority,
  57. IN ULONG SubAuthorityCount
  58. );
  59. DWORD
  60. INetpDomainIdToSid(
  61. IN PSID DomainId,
  62. IN ULONG RelativeId,
  63. OUT PSID *Sid
  64. );
  65. DWORD
  66. INetpCreateSecurityDescriptor(
  67. IN PACE_DATA AceData,
  68. IN ULONG AceCount,
  69. IN PSID OwnerSid OPTIONAL,
  70. IN PSID GroupSid OPTIONAL,
  71. OUT PSECURITY_DESCRIPTOR *NewDescriptor
  72. );
  73. #ifdef __cplusplus
  74. }
  75. #endif
  76. #endif // _PROTO_H_
  77.