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.

120 lines
2.1 KiB

  1. /*++
  2. Copyright (c) 1987-1996 Microsoft Corporation
  3. Module Name:
  4. replutil.h
  5. Abstract:
  6. Low level functions for SSI Replication apis
  7. Author:
  8. Ported from Lan Man 2.0
  9. Environment:
  10. User mode only.
  11. Contains NT-specific code.
  12. Requires ANSI C extensions: slash-slash comments, long external names.
  13. Revision History:
  14. 22-Jul-1991 (cliffv)
  15. Ported to NT. Converted to NT style.
  16. --*/
  17. //
  18. // Description of the FullSync key in the registry. The FullSync key stores sync
  19. // data in the registry across reboots.
  20. //
  21. #define NL_FULL_SYNC_KEY "SYSTEM\\CurrentControlSet\\Services\\Netlogon\\FullSync"
  22. #ifdef _DC_NETLOGON
  23. //
  24. // replutil.c
  25. //
  26. DWORD
  27. NlCopyUnicodeString (
  28. IN PUNICODE_STRING InString,
  29. OUT PUNICODE_STRING OutString
  30. );
  31. DWORD
  32. NlCopyData(
  33. IN LPBYTE *InData,
  34. OUT LPBYTE *OutData,
  35. DWORD DataLength
  36. );
  37. VOID
  38. NlFreeDBDelta(
  39. IN PNETLOGON_DELTA_ENUM Delta
  40. );
  41. VOID
  42. NlFreeDBDeltaArray(
  43. IN PNETLOGON_DELTA_ENUM DeltaArray,
  44. IN DWORD ArraySize
  45. );
  46. NTSTATUS
  47. NlPackSamUser (
  48. IN ULONG RelativeId,
  49. IN OUT PNETLOGON_DELTA_ENUM Delta,
  50. IN PDB_INFO DBInfo,
  51. OUT LPDWORD BufferSize,
  52. IN PSESSION_INFO SessionInfo
  53. );
  54. NTSTATUS
  55. NlPackSamGroup (
  56. IN ULONG RelativeId,
  57. IN OUT PNETLOGON_DELTA_ENUM Delta,
  58. IN PDB_INFO DBInfo,
  59. LPDWORD BufferSize
  60. );
  61. NTSTATUS
  62. NlPackSamGroupMember (
  63. IN ULONG RelativeId,
  64. IN OUT PNETLOGON_DELTA_ENUM Delta,
  65. IN PDB_INFO DBInfo,
  66. LPDWORD BufferSize
  67. );
  68. NTSTATUS
  69. NlPackSamAlias (
  70. IN ULONG RelativeId,
  71. IN OUT PNETLOGON_DELTA_ENUM Delta,
  72. IN PDB_INFO DBInfo,
  73. LPDWORD BufferSize
  74. );
  75. NTSTATUS
  76. NlPackSamAliasMember (
  77. IN ULONG RelativeId,
  78. IN OUT PNETLOGON_DELTA_ENUM Delta,
  79. IN PDB_INFO DBInfo,
  80. LPDWORD BufferSize
  81. );
  82. NTSTATUS
  83. NlPackSamDomain (
  84. IN OUT PNETLOGON_DELTA_ENUM Delta,
  85. IN PDB_INFO DBInfo,
  86. IN LPDWORD BufferSize
  87. );
  88. NTSTATUS
  89. NlEncryptSensitiveData(
  90. IN OUT PCRYPT_BUFFER Data,
  91. IN PSESSION_INFO SessionInfo
  92. );
  93. #endif _DC_NETLOGON