windows-nt/Source/XPSP1/NT/base/fs/utils/regedit/regedit.h
2020-09-26 16:20:57 +08:00

113 lines
2.5 KiB
C

/*******************************************************************************
*
* (C) COPYRIGHT MICROSOFT CORP., 1993-1994
*
* TITLE: REGEDIT.H
*
* VERSION: 4.0
*
* AUTHOR: Tracy Sharpe
*
* DATE: 21 Nov 1993
*
* Common header file for the Registry Editor. Precompiled header.
*
********************************************************************************
*
* CHANGE LOG:
*
* DATE REV DESCRIPTION
* ----------- --- -------------------------------------------------------------
* 21 Nov 1993 TCS Original implementation.
*
*******************************************************************************/
#ifndef _INC_REGEDIT
#define _INC_REGEDIT
// Class name of main application window.
extern const TCHAR g_RegEditClassName[];
#define IDC_KEYTREE 1
#define IDC_VALUELIST 2
#define IDC_STATUSBAR 3
typedef struct _REGEDITDATA {
HWND hKeyTreeWnd;
HWND hValueListWnd;
HWND hStatusBarWnd;
HWND hFocusWnd;
int xPaneSplit;
HIMAGELIST hImageList;
HKEY hCurrentSelectionKey;
int SelChangeTimerState;
int StatusBarShowCommand;
PTSTR pDefaultValue;
PTSTR pValueNotSet;
PTSTR pEmptyBinary;
PTSTR pCollapse;
PTSTR pModify;
PTSTR pModifyBinary;
PTSTR pNewKeyTemplate;
PTSTR pNewValueTemplate;
BOOL fAllowLabelEdits;
HMENU hMainMenu;
BOOL fMainMenuInited;
BOOL fHaveNetwork;
BOOL fProcessingFind;
HTREEITEM hMyComputer;
UINT uExportFormat;
} REGEDITDATA, *PREGEDITDATA;
extern REGEDITDATA g_RegEditData;
#define SCTS_TIMERCLEAR 0
#define SCTS_TIMERSET 1
#define SCTS_INITIALIZING 2
#define REG_READONLY 0
#define REG_READWRITE 1
#define MAXKEYNAMEPATH (MAXKEYNAME * 2)
BOOL
PASCAL
RegisterRegEditClass(
VOID
);
HWND
PASCAL
CreateRegEditWnd(
VOID
);
VOID
PASCAL
RegEdit_OnCommand(
HWND hWnd,
int DlgItem,
HWND hControlWnd,
UINT NotificationCode
);
VOID
PASCAL
RegEdit_SetNewObjectEditMenuItems(
HMENU hPopupMenu
);
VOID
PASCAL
RegEdit_SetWaitCursor(
BOOL fSet
);
HTREEITEM RegEdit_GetComputerItem(HTREEITEM hTreeItem);
VOID RegEdit_InvokeSecurityEditor(HWND hWnd);
PREDEFINE_KEY RegEdit_GetPredefinedKey(HTREEITEM hTreeItem);
void Regedit_EnableHiveMenuItems(HMENU hPopupMenu);
#define REM_UPDATESTATUSBAR (WM_USER + 1)
#endif // _INC_REGEDIT