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.

86 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1993-1994 Microsoft Corporation
  3. Module Name:
  4. initodat.h
  5. Abstract:
  6. This is the include file for the ini to data file conversion functions.
  7. Author:
  8. HonWah Chan (a-honwah) October, 1993
  9. Revision History:
  10. --*/
  11. #include <nt.h>
  12. #include <ntrtl.h>
  13. #include <nturtl.h>
  14. #include <windows.h>
  15. #include <stdio.h>
  16. #include <stdlib.h>
  17. #include <errno.h>
  18. #include <ctype.h>
  19. #include <string.h>
  20. // #include <io.h>
  21. #include <fcntl.h>
  22. #include <malloc.h>
  23. #include <sys\types.h>
  24. #include <sys\stat.h>
  25. #include <tchar.h>
  26. #define VALUE_BUFFER_SIZE (4096 * 100)
  27. typedef struct _REG_UNICODE_FILE {
  28. LARGE_INTEGER LastWriteTime;
  29. PWSTR FileContents;
  30. PWSTR EndOfFile;
  31. PWSTR BeginLine;
  32. PWSTR EndOfLine;
  33. PWSTR NextLine;
  34. } REG_UNICODE_FILE, *PREG_UNICODE_FILE;
  35. NTSTATUS
  36. DatReadMultiSzFile(
  37. #if FE_SB
  38. UINT uCodePage,
  39. #endif
  40. IN PUNICODE_STRING FileName,
  41. OUT PVOID *ValueBuffer,
  42. OUT PULONG ValueLength
  43. );
  44. NTSTATUS
  45. DatLoadAsciiFileAsUnicode(
  46. #if FE_SB
  47. UINT uCodePage,
  48. #endif
  49. IN PUNICODE_STRING FileName,
  50. OUT PREG_UNICODE_FILE UnicodeFile
  51. );
  52. BOOLEAN
  53. DatGetMultiString(
  54. IN OUT PUNICODE_STRING ValueString,
  55. OUT PUNICODE_STRING MultiString
  56. );
  57. BOOL
  58. OutputIniData (
  59. IN PUNICODE_STRING FileName,
  60. IN LPTSTR OutFileCandidate,
  61. IN PVOID pValueBuffer,
  62. IN ULONG ValueLength
  63. );
  64.