Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
a3c03fea
Commit
a3c03fea
authored
Jul 14, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jul 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add some registry reading macro functions.
parent
230af9d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
msipriv.h
dlls/msi/msipriv.h
+3
-0
registry.c
dlls/msi/registry.c
+26
-0
No files found.
dlls/msi/msipriv.h
View file @
a3c03fea
...
...
@@ -415,6 +415,9 @@ extern UINT MSIREG_OpenUserComponentsKey(LPCWSTR szComponent, HKEY* key, BOOL cr
extern
UINT
MSIREG_OpenUpgradeCodesKey
(
LPCWSTR
szProduct
,
HKEY
*
key
,
BOOL
create
);
extern
UINT
MSIREG_OpenUserUpgradeCodesKey
(
LPCWSTR
szProduct
,
HKEY
*
key
,
BOOL
create
);
extern
LPWSTR
msi_reg_get_val_str
(
HKEY
hkey
,
LPCWSTR
name
);
extern
BOOL
msi_reg_get_val_dword
(
HKEY
hkey
,
LPCWSTR
name
,
DWORD
*
val
);
extern
DWORD
msi_version_str_to_dword
(
LPCWSTR
p
);
extern
LPWSTR
msi_version_dword_to_str
(
DWORD
version
);
...
...
dlls/msi/registry.c
View file @
a3c03fea
...
...
@@ -369,6 +369,32 @@ LONG msi_reg_set_subkey_val( HKEY hkey, LPCWSTR path, LPCWSTR name, LPCWSTR val
return
r
;
}
LPWSTR
msi_reg_get_val_str
(
HKEY
hkey
,
LPCWSTR
name
)
{
DWORD
len
=
0
;
LPWSTR
val
;
LONG
r
;
r
=
RegQueryValueExW
(
hkey
,
name
,
NULL
,
NULL
,
NULL
,
&
len
);
if
(
r
!=
ERROR_SUCCESS
)
return
NULL
;
len
+=
sizeof
(
WCHAR
);
val
=
msi_alloc
(
len
);
if
(
!
val
)
return
NULL
;
val
[
0
]
=
0
;
RegQueryValueExW
(
hkey
,
name
,
NULL
,
NULL
,
(
LPBYTE
)
val
,
&
len
);
return
val
;
}
BOOL
msi_reg_get_val_dword
(
HKEY
hkey
,
LPCWSTR
name
,
DWORD
*
val
)
{
DWORD
type
,
len
=
sizeof
(
DWORD
);
LONG
r
=
RegQueryValueExW
(
hkey
,
name
,
NULL
,
&
type
,
(
LPBYTE
)
val
,
&
len
);
return
r
==
ERROR_SUCCESS
&&
type
==
REG_DWORD
;
}
UINT
MSIREG_OpenUninstallKey
(
LPCWSTR
szProduct
,
HKEY
*
key
,
BOOL
create
)
{
UINT
rc
;
...
...
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