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.
97 lines
2.0 KiB
97 lines
2.0 KiB
/*******************************************************************************
|
|
*
|
|
* (C) COPYRIGHT MICROSOFT CORP., 1993-1994
|
|
*
|
|
* TITLE: REGPORTE.H
|
|
*
|
|
* VERSION: 4.01
|
|
*
|
|
* AUTHOR: Tracy Sharpe
|
|
*
|
|
* DATE: 06 Apr 1994
|
|
*
|
|
* File import and export engine routines for the Registry Editor.
|
|
*
|
|
*******************************************************************************/
|
|
|
|
#ifndef _INC_REGPORTE
|
|
#define _INC_REGPORTE
|
|
|
|
#ifndef LPHKEY
|
|
#define LPHKEY HKEY FAR*
|
|
#endif
|
|
|
|
typedef struct _REGISTRY_ROOT {
|
|
LPTSTR lpKeyName;
|
|
HKEY hKey;
|
|
} REGISTRY_ROOT;
|
|
|
|
#define INDEX_HKEY_CLASSES_ROOT 0
|
|
#define INDEX_HKEY_CURRENT_USER 1
|
|
#define INDEX_HKEY_LOCAL_MACHINE 2
|
|
#define INDEX_HKEY_USERS 3
|
|
// #define INDEX_HKEY_PERFORMANCE_DATA 4
|
|
#define INDEX_HKEY_CURRENT_CONFIG 4
|
|
#define INDEX_HKEY_DYN_DATA 5
|
|
|
|
// #define NUMBER_REGISTRY_ROOTS 7
|
|
#define NUMBER_REGISTRY_ROOTS 6
|
|
|
|
// BUGBUG: This is supposed to be enough for one keyname plus one predefined
|
|
// handle name.
|
|
#define SIZE_SELECTED_PATH (MAXKEYNAME + 40)
|
|
|
|
extern const TCHAR g_HexConversion[];
|
|
|
|
extern UINT g_FileErrorStringID;
|
|
|
|
#define ERK_OPEN 0
|
|
#define ERK_CREATE 1
|
|
#define ERK_DELETE 2
|
|
|
|
|
|
DWORD
|
|
PASCAL
|
|
EditRegistryKey(
|
|
LPHKEY lphKey,
|
|
LPTSTR lpFullKeyName,
|
|
UINT uOperation
|
|
);
|
|
|
|
VOID
|
|
PASCAL
|
|
ImportRegFileWorker(
|
|
LPTSTR lpFileName
|
|
);
|
|
|
|
VOID
|
|
PASCAL
|
|
ExportWinNT50RegFile(
|
|
LPTSTR lpFileName,
|
|
LPTSTR lpSelectedPath
|
|
);
|
|
|
|
VOID
|
|
PASCAL
|
|
ExportWin40RegFile(
|
|
LPTSTR lpFileName,
|
|
LPTSTR lpSelectedPath
|
|
);
|
|
|
|
VOID
|
|
PASCAL
|
|
ImportRegFileUICallback(
|
|
UINT Percentage
|
|
);
|
|
|
|
LONG RegDeleteKeyRecursive(HKEY hKey,
|
|
LPCTSTR lpszSubKey);
|
|
|
|
|
|
typedef struct _PORTVALUEPARAM
|
|
{
|
|
PBYTE pbData;
|
|
UINT cbData;
|
|
} PORTVALUEPARAM, *LPPORTVALUEPARAM;
|
|
|
|
#endif // _INC_REGPORTE
|