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.

123 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. regutil.h
  5. Abstract:
  6. This is the include file for the registry utility functions.
  7. Author:
  8. Steve Wood (stevewo) 10-Mar-1992
  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 <io.h>
  17. #include <conio.h>
  18. #include <stdlib.h>
  19. #include <errno.h>
  20. #include <string.h>
  21. #include <ctype.h>
  22. #include <string.h>
  23. #include <fcntl.h>
  24. #include <malloc.h>
  25. #include <sys\types.h>
  26. #include <sys\stat.h>
  27. #include "regtool.h"
  28. _inline ULONG
  29. HiPtrToUlong( const void *p )
  30. {
  31. DWORDLONG dwl;
  32. dwl=(ULONG_PTR)p;
  33. dwl >>= 32;
  34. return (ULONG)dwl;
  35. }
  36. #define LO_PTR PtrToUlong
  37. #define HI_PTR HiPtrToUlong
  38. REG_CONTEXT RegistryContext;
  39. PVOID OldValueBuffer;
  40. ULONG OldValueBufferSize;
  41. PWSTR MachineName;
  42. PWSTR HiveFileName;
  43. PWSTR HiveRootName;
  44. PWSTR Win95Path;
  45. PWSTR Win95UserPath;
  46. ULONG OutputHeight;
  47. ULONG OutputWidth;
  48. ULONG IndentMultiple;
  49. BOOLEAN DebugOutput;
  50. BOOLEAN FullPathOutput;
  51. void
  52. InitCommonCode(
  53. PHANDLER_ROUTINE CtrlCHandler,
  54. LPSTR ModuleName,
  55. LPSTR ModuleUsage1,
  56. LPSTR ModuleUsage2
  57. );
  58. void
  59. Usage(
  60. LPSTR Message,
  61. ULONG_PTR MessageParameter
  62. );
  63. void
  64. FatalError(
  65. LPSTR Message,
  66. ULONG_PTR MessageParameter1,
  67. ULONG_PTR MessageParameter2
  68. );
  69. void
  70. InputMessage(
  71. PWSTR FileName,
  72. ULONG LineNumber,
  73. BOOLEAN Error,
  74. LPSTR Message,
  75. ULONG_PTR MessageParameter1,
  76. ULONG_PTR MessageParameter2
  77. );
  78. PWSTR
  79. GetArgAsUnicode(
  80. LPSTR s
  81. );
  82. void
  83. CommonSwitchProcessing(
  84. PULONG argc,
  85. PCHAR **argv,
  86. CHAR c
  87. );
  88. int
  89. __cdecl
  90. MsgFprintf (
  91. FILE *str,
  92. LPSTR Format,
  93. ...
  94. );
  95. void TSGetch(void);