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.

101 lines
2.6 KiB

  1. /*++
  2. Copyright (c) 1991-1996 Microsoft Corporation
  3. Module Name:
  4. ssiapi.h
  5. Abstract:
  6. Declartions of APIs used between Netlogon Services for the NT to NT case.
  7. Author:
  8. Cliff Van Dyke (cliffv) 25-Jul-1991
  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. --*/
  15. //////////////////////////////////////////////////////////////////////
  16. //
  17. // API Interfaces used only between Netlogon and itself.
  18. //
  19. //////////////////////////////////////////////////////////////////////
  20. NTSTATUS
  21. I_NetDatabaseDeltas (
  22. IN LPWSTR PrimaryName,
  23. IN LPWSTR ComputerName,
  24. IN PNETLOGON_AUTHENTICATOR Authenticator,
  25. OUT PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
  26. IN DWORD DatabaseID,
  27. IN OUT PNLPR_MODIFIED_COUNT DomainModifiedCount,
  28. OUT PNETLOGON_DELTA_ENUM_ARRAY *DeltaArray,
  29. IN DWORD PreferredMaximumLength
  30. );
  31. NTSTATUS
  32. I_NetDatabaseSync (
  33. IN LPWSTR PrimaryName,
  34. IN LPWSTR ComputerName,
  35. IN PNETLOGON_AUTHENTICATOR Authenticator,
  36. OUT PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
  37. IN DWORD DatabaseID,
  38. IN OUT PULONG SamSyncContext,
  39. OUT PNETLOGON_DELTA_ENUM_ARRAY *DeltaArray,
  40. IN DWORD PreferredMaximumLength
  41. );
  42. NTSTATUS
  43. I_NetDatabaseSync2 (
  44. IN LPWSTR PrimaryName,
  45. IN LPWSTR ComputerName,
  46. IN PNETLOGON_AUTHENTICATOR Authenticator,
  47. OUT PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
  48. IN DWORD DatabaseID,
  49. IN SYNC_STATE RestartState,
  50. IN OUT PULONG SamSyncContext,
  51. OUT PNETLOGON_DELTA_ENUM_ARRAY *DeltaArray,
  52. IN DWORD PreferredMaximumLength
  53. );
  54. NTSTATUS
  55. I_NetDatabaseRedo (
  56. IN LPWSTR PrimaryName,
  57. IN LPWSTR ComputerName,
  58. IN PNETLOGON_AUTHENTICATOR Authenticator,
  59. OUT PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
  60. IN LPBYTE ChangeLogEntry,
  61. IN DWORD ChangeLogEntrySize,
  62. OUT PNETLOGON_DELTA_ENUM_ARRAY *DeltaArray
  63. );
  64. //
  65. // Indexes for data items returned in the generic RPC data
  66. // structure by I_NetServerGetTrustInfo.
  67. //
  68. #define NL_GENERIC_RPC_TRUST_ATTRIB_INDEX 0
  69. NTSTATUS
  70. I_NetServerGetTrustInfo(
  71. IN LPWSTR TrustedDcName,
  72. IN LPWSTR AccountName,
  73. IN NETLOGON_SECURE_CHANNEL_TYPE AccountType,
  74. IN LPWSTR ComputerName,
  75. IN PNETLOGON_AUTHENTICATOR Authenticator,
  76. OUT PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
  77. OUT PENCRYPTED_NT_OWF_PASSWORD EncryptedNewOwfPassword,
  78. OUT PENCRYPTED_NT_OWF_PASSWORD EncryptedOldOwfPassword,
  79. OUT PNL_GENERIC_RPC_DATA *TrustInfo
  80. );