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
1.7 KiB

  1. //+-----------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (c) Microsoft Corporation 1991 - 1997
  6. //
  7. // File: SECRET.H
  8. //
  9. // Contents: Redirector functions to read/write remote boot secrets
  10. //
  11. //
  12. // History: 29 Dec 97, AdamBa Created
  13. //
  14. //------------------------------------------------------------------------
  15. #ifndef __RDRSECRET_H__
  16. #define __RDRSECRET_H__
  17. #include <remboot.h>
  18. #define SECPKG_CRED_OWF_PASSWORD 0x00000010
  19. #if defined(REMOTE_BOOT)
  20. NTSTATUS
  21. RdrOpenRawDisk(
  22. PHANDLE Handle
  23. );
  24. NTSTATUS
  25. RdrCloseRawDisk(
  26. HANDLE Handle
  27. );
  28. NTSTATUS
  29. RdrCheckForFreeSectors (
  30. HANDLE Handle
  31. );
  32. NTSTATUS
  33. RdrReadSecret(
  34. HANDLE Handle,
  35. PRI_SECRET Secret
  36. );
  37. NTSTATUS
  38. RdrWriteSecret(
  39. HANDLE Handle,
  40. PRI_SECRET Secret
  41. );
  42. VOID
  43. RdrInitializeSecret(
  44. IN PUCHAR Domain,
  45. IN PUCHAR User,
  46. IN PUCHAR LmOwfPassword1,
  47. IN PUCHAR NtOwfPassword1,
  48. IN PUCHAR LmOwfPassword2 OPTIONAL,
  49. IN PUCHAR NtOwfPassword2 OPTIONAL,
  50. IN PUCHAR Sid,
  51. IN OUT PRI_SECRET Secret
  52. );
  53. #endif // defined(REMOTE_BOOT)
  54. VOID
  55. RdrParseSecret(
  56. IN OUT PUCHAR Domain,
  57. IN OUT PUCHAR User,
  58. IN OUT PUCHAR LmOwfPassword1,
  59. IN OUT PUCHAR NtOwfPassword1,
  60. #if defined(REMOTE_BOOT)
  61. IN OUT PUCHAR LmOwfPassword2,
  62. IN OUT PUCHAR NtOwfPassword2,
  63. #endif // defined(REMOTE_BOOT)
  64. IN OUT PUCHAR Sid,
  65. IN PRI_SECRET Secret
  66. );
  67. #if defined(REMOTE_BOOT)
  68. VOID
  69. RdrOwfPassword(
  70. IN PUNICODE_STRING Password,
  71. IN OUT PUCHAR LmOwfPassword,
  72. IN OUT PUCHAR NtOwfPassword
  73. );
  74. #endif // defined(REMOTE_BOOT)
  75. #endif // __RDRSECRET_H__