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.

112 lines
2.5 KiB

  1. /*******************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORP., 1993-1994
  4. *
  5. * TITLE: REGEDIT.H
  6. *
  7. * VERSION: 4.0
  8. *
  9. * AUTHOR: Tracy Sharpe
  10. *
  11. * DATE: 21 Nov 1993
  12. *
  13. * Common header file for the Registry Editor. Precompiled header.
  14. *
  15. ********************************************************************************
  16. *
  17. * CHANGE LOG:
  18. *
  19. * DATE REV DESCRIPTION
  20. * ----------- --- -------------------------------------------------------------
  21. * 21 Nov 1993 TCS Original implementation.
  22. *
  23. *******************************************************************************/
  24. #ifndef _INC_REGEDIT
  25. #define _INC_REGEDIT
  26. // Class name of main application window.
  27. extern const TCHAR g_RegEditClassName[];
  28. #define IDC_KEYTREE 1
  29. #define IDC_VALUELIST 2
  30. #define IDC_STATUSBAR 3
  31. typedef struct _REGEDITDATA {
  32. HWND hKeyTreeWnd;
  33. HWND hValueListWnd;
  34. HWND hStatusBarWnd;
  35. HWND hFocusWnd;
  36. int xPaneSplit;
  37. HIMAGELIST hImageList;
  38. HKEY hCurrentSelectionKey;
  39. int SelChangeTimerState;
  40. int StatusBarShowCommand;
  41. PTSTR pDefaultValue;
  42. PTSTR pValueNotSet;
  43. PTSTR pEmptyBinary;
  44. PTSTR pCollapse;
  45. PTSTR pModify;
  46. PTSTR pModifyBinary;
  47. PTSTR pNewKeyTemplate;
  48. PTSTR pNewValueTemplate;
  49. BOOL fAllowLabelEdits;
  50. HMENU hMainMenu;
  51. BOOL fMainMenuInited;
  52. BOOL fHaveNetwork;
  53. BOOL fProcessingFind;
  54. HTREEITEM hMyComputer;
  55. UINT uExportFormat;
  56. } REGEDITDATA, *PREGEDITDATA;
  57. extern REGEDITDATA g_RegEditData;
  58. #define SCTS_TIMERCLEAR 0
  59. #define SCTS_TIMERSET 1
  60. #define SCTS_INITIALIZING 2
  61. #define REG_READONLY 0
  62. #define REG_READWRITE 1
  63. #define MAXKEYNAMEPATH (MAXKEYNAME * 2)
  64. BOOL
  65. PASCAL
  66. RegisterRegEditClass(
  67. VOID
  68. );
  69. HWND
  70. PASCAL
  71. CreateRegEditWnd(
  72. VOID
  73. );
  74. VOID
  75. PASCAL
  76. RegEdit_OnCommand(
  77. HWND hWnd,
  78. int DlgItem,
  79. HWND hControlWnd,
  80. UINT NotificationCode
  81. );
  82. VOID
  83. PASCAL
  84. RegEdit_SetNewObjectEditMenuItems(
  85. HMENU hPopupMenu
  86. );
  87. VOID
  88. PASCAL
  89. RegEdit_SetWaitCursor(
  90. BOOL fSet
  91. );
  92. HTREEITEM RegEdit_GetComputerItem(HTREEITEM hTreeItem);
  93. VOID RegEdit_InvokeSecurityEditor(HWND hWnd);
  94. PREDEFINE_KEY RegEdit_GetPredefinedKey(HTREEITEM hTreeItem);
  95. void Regedit_EnableHiveMenuItems(HMENU hPopupMenu);
  96. #define REM_UPDATESTATUSBAR (WM_USER + 1)
  97. #endif // _INC_REGEDIT