Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
cddb03e6
Commit
cddb03e6
authored
Jul 08, 2004
by
Robert Reif
Committed by
Alexandre Julliard
Jul 08, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added HKEY_DYN_DATA support.
parent
0da4277a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
childwnd.c
programs/regedit/childwnd.c
+1
-0
regproc.c
programs/regedit/regproc.c
+4
-3
treeview.c
programs/regedit/treeview.c
+1
-0
No files found.
programs/regedit/childwnd.c
View file @
cddb03e6
...
...
@@ -44,6 +44,7 @@ static LPCTSTR get_root_key_name(HKEY hRootKey)
if
(
hRootKey
==
HKEY_LOCAL_MACHINE
)
return
_T
(
"HKEY_LOCAL_MACHINE"
);
if
(
hRootKey
==
HKEY_USERS
)
return
_T
(
"HKEY_USERS"
);
if
(
hRootKey
==
HKEY_CURRENT_CONFIG
)
return
_T
(
"HKEY_CURRENT_CONFIG"
);
if
(
hRootKey
==
HKEY_DYN_DATA
)
return
_T
(
"HKEY_DYN_DATA"
);
return
_T
(
"UKNOWN HKEY, PLEASE REPORT"
);
}
...
...
programs/regedit/regproc.c
View file @
cddb03e6
...
...
@@ -47,14 +47,14 @@ static CHAR *app_name = "UNKNOWN";
static
CHAR
*
reg_class_names
[]
=
{
"HKEY_LOCAL_MACHINE"
,
"HKEY_USERS"
,
"HKEY_CLASSES_ROOT"
,
"HKEY_CURRENT_CONFIG"
,
"HKEY_CURRENT_USER"
"HKEY_CURRENT_CONFIG"
,
"HKEY_CURRENT_USER"
,
"HKEY_DYN_DATA"
};
#define REG_CLASS_NUMBER (sizeof(reg_class_names) / sizeof(reg_class_names[0]))
static
HKEY
reg_class_keys
[
REG_CLASS_NUMBER
]
=
{
HKEY_LOCAL_MACHINE
,
HKEY_USERS
,
HKEY_CLASSES_ROOT
,
HKEY_CURRENT_CONFIG
,
HKEY_CURRENT_USER
HKEY_CURRENT_CONFIG
,
HKEY_CURRENT_USER
,
HKEY_DYN_DATA
};
/* return values */
...
...
@@ -1372,7 +1372,8 @@ BOOL export_registry_key(CHAR *file_name, CHAR *reg_key_name)
/* do not export HKEY_CLASSES_ROOT */
if
(
reg_class_keys
[
i
]
!=
HKEY_CLASSES_ROOT
&&
reg_class_keys
[
i
]
!=
HKEY_CURRENT_USER
&&
reg_class_keys
[
i
]
!=
HKEY_CURRENT_CONFIG
)
{
reg_class_keys
[
i
]
!=
HKEY_CURRENT_CONFIG
&&
reg_class_keys
[
i
]
!=
HKEY_DYN_DATA
)
{
strcpy
(
reg_key_name_buf
,
reg_class_names
[
i
]);
export_hkey
(
file
,
reg_class_keys
[
i
],
&
reg_key_name_buf
,
&
reg_key_name_len
,
...
...
programs/regedit/treeview.c
View file @
cddb03e6
...
...
@@ -196,6 +196,7 @@ static BOOL InitTreeViewItems(HWND hwndTV, LPTSTR pHostName)
if
(
!
AddEntryToTree
(
hwndTV
,
hRoot
,
_T
(
"HKEY_LOCAL_MACHINE"
),
HKEY_LOCAL_MACHINE
,
1
))
return
FALSE
;
if
(
!
AddEntryToTree
(
hwndTV
,
hRoot
,
_T
(
"HKEY_USERS"
),
HKEY_USERS
,
1
))
return
FALSE
;
if
(
!
AddEntryToTree
(
hwndTV
,
hRoot
,
_T
(
"HKEY_CURRENT_CONFIG"
),
HKEY_CURRENT_CONFIG
,
1
))
return
FALSE
;
if
(
!
AddEntryToTree
(
hwndTV
,
hRoot
,
_T
(
"HKEY_DYN_DATA"
),
HKEY_DYN_DATA
,
1
))
return
FALSE
;
/* expand and select host name */
TreeView_Expand
(
hwndTV
,
hRoot
,
TVE_EXPAND
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment