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.

124 lines
1.9 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 <regstr.h>
  28. #include "regtool.h"
  29. _inline ULONG
  30. HiPtrToUlong( const void *p )
  31. {
  32. DWORDLONG dwl;
  33. dwl=(ULONG_PTR)p;
  34. dwl >>= 32;
  35. return (ULONG)dwl;
  36. }
  37. #define LO_PTR PtrToUlong
  38. #define HI_PTR HiPtrToUlong
  39. REG_CONTEXT RegistryContext;
  40. PVOID OldValueBuffer;
  41. ULONG OldValueBufferSize;
  42. PWSTR MachineName;
  43. PWSTR HiveFileName;
  44. PWSTR HiveRootName;
  45. PWSTR Win95Path;
  46. PWSTR Win95UserPath;
  47. ULONG OutputHeight;
  48. ULONG OutputWidth;
  49. ULONG IndentMultiple;
  50. BOOLEAN DebugOutput;
  51. BOOLEAN FullPathOutput;
  52. void
  53. InitCommonCode(
  54. PHANDLER_ROUTINE CtrlCHandler,
  55. LPSTR ModuleName,
  56. LPSTR ModuleUsage1,
  57. LPSTR ModuleUsage2
  58. );
  59. void
  60. Usage(
  61. LPSTR Message,
  62. ULONG_PTR MessageParameter
  63. );
  64. void
  65. FatalError(
  66. LPSTR Message,
  67. ULONG_PTR MessageParameter1,
  68. ULONG_PTR MessageParameter2
  69. );
  70. void
  71. InputMessage(
  72. PWSTR FileName,
  73. ULONG LineNumber,
  74. BOOLEAN Error,
  75. LPSTR Message,
  76. ULONG_PTR MessageParameter1,
  77. ULONG_PTR MessageParameter2
  78. );
  79. PWSTR
  80. GetArgAsUnicode(
  81. LPSTR s
  82. );
  83. void
  84. CommonSwitchProcessing(
  85. PULONG argc,
  86. PCHAR **argv,
  87. CHAR c
  88. );
  89. int
  90. __cdecl
  91. MsgFprintf (
  92. FILE *str,
  93. LPSTR Format,
  94. ...
  95. );
  96. void TSGetch(void);
  97. BOOL IsRegistryToolDisabled();