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.

99 lines
1.6 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1997.
  5. //
  6. // File: wxlpc.h
  7. //
  8. // Contents:
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 4-18-97 RichardW Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #ifndef __WXLPC_H__
  18. #define __WXLPC_H__
  19. #define SYSKEY_SIZE 16 //size in bytes
  20. typedef enum _WX_AUTH_TYPE {
  21. WxNone = 0,
  22. WxStored,
  23. WxPrompt,
  24. WxDisk
  25. } WX_AUTH_TYPE ;
  26. typedef struct _WXHASH {
  27. UCHAR Digest[16];
  28. } WXHASH, *PWXHASH;
  29. NTSTATUS
  30. WxServerThread(
  31. PVOID Ignored
  32. );
  33. NTSTATUS
  34. WxConnect(
  35. OUT PHANDLE Handle
  36. );
  37. NTSTATUS
  38. WxGetKeyData(
  39. IN HANDLE Handle,
  40. IN WX_AUTH_TYPE ExpectedAuthSource,
  41. IN ULONG BufferSize,
  42. OUT PUCHAR Buffer,
  43. OUT PULONG BufferData
  44. );
  45. NTSTATUS
  46. WxReportResults(
  47. IN HANDLE Handle,
  48. IN NTSTATUS Status
  49. );
  50. VOID
  51. WxClientDisconnect(
  52. IN HANDLE Handle
  53. );
  54. NTSTATUS
  55. WxSaveSysKey(
  56. IN ULONG Keylen,
  57. IN PVOID Key
  58. );
  59. NTSTATUS
  60. WxReadSysKey(
  61. IN OUT PULONG BufferLength,
  62. OUT PVOID Key
  63. );
  64. NTSTATUS
  65. WxReadSysKeyEx(
  66. IN HANDLE Handle,
  67. IN OUT PULONG BufferLength,
  68. OUT PVOID Key
  69. );
  70. NTSTATUS
  71. WxLoadSysKeyFromDisk(
  72. OUT PVOID Key,
  73. IN OUT PULONG BufferLength
  74. );
  75. NTSTATUS
  76. WxHashKey(
  77. IN OUT LPWSTR Key,
  78. OUT PVOID Syskey,
  79. IN OUT ULONG cbSyskey
  80. );
  81. NTSTATUS
  82. WxSaveBootOption( WX_AUTH_TYPE NewType );
  83. #endif // __WXLPC_H__