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.

87 lines
1.7 KiB

  1. /*******************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORP., 1993-1994
  4. *
  5. * TITLE: REGPORTE.H
  6. *
  7. * VERSION: 4.01
  8. *
  9. * AUTHOR: Tracy Sharpe
  10. *
  11. * DATE: 06 Apr 1994
  12. *
  13. * File import and export engine routines for the Registry Editor.
  14. *
  15. *******************************************************************************/
  16. #ifndef _INC_REGPORTE
  17. #define _INC_REGPORTE
  18. #ifndef LPHKEY
  19. #define LPHKEY HKEY FAR*
  20. #endif
  21. typedef struct _REGISTRY_ROOT {
  22. LPTSTR lpKeyName;
  23. HKEY hKey;
  24. } REGISTRY_ROOT;
  25. #define INDEX_HKEY_CLASSES_ROOT 0
  26. #define INDEX_HKEY_CURRENT_USER 1
  27. #define INDEX_HKEY_LOCAL_MACHINE 2
  28. #define INDEX_HKEY_USERS 3
  29. // #define INDEX_HKEY_PERFORMANCE_DATA 4
  30. #define INDEX_HKEY_CURRENT_CONFIG 4
  31. #define INDEX_HKEY_DYN_DATA 5
  32. // #define NUMBER_REGISTRY_ROOTS 7
  33. #define NUMBER_REGISTRY_ROOTS 6
  34. // BUGBUG: This is supposed to be enough for one keyname plus one predefined
  35. // handle name.
  36. #define SIZE_SELECTED_PATH (MAXKEYNAME + 40)
  37. extern const TCHAR g_HexConversion[];
  38. extern UINT g_FileErrorStringID;
  39. #define ERK_OPEN 0
  40. #define ERK_CREATE 1
  41. #define ERK_DELETE 2
  42. DWORD
  43. PASCAL
  44. EditRegistryKey(
  45. LPHKEY lphKey,
  46. LPTSTR lpFullKeyName,
  47. UINT uOperation
  48. );
  49. VOID
  50. PASCAL
  51. ImportRegFileWorker(
  52. LPTSTR lpFileName
  53. );
  54. VOID
  55. PASCAL
  56. ExportWinNT50RegFile(
  57. LPTSTR lpFileName,
  58. LPTSTR lpSelectedPath
  59. );
  60. VOID
  61. PASCAL
  62. ExportWin40RegFile(
  63. LPTSTR lpFileName,
  64. LPTSTR lpSelectedPath
  65. );
  66. VOID
  67. PASCAL
  68. ImportRegFileUICallback(
  69. UINT Percentage
  70. );
  71. #endif // _INC_REGPORTE