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
84361d5a
Commit
84361d5a
authored
Mar 10, 2003
by
Maxime Bellengé
Committed by
Alexandre Julliard
Mar 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented SHRegSetUSValueA and SHRegSetUSValueW.
parent
b5d8f532
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
3 deletions
+63
-3
reg.c
dlls/shlwapi/reg.c
+61
-1
shlwapi.spec
dlls/shlwapi/shlwapi.spec
+2
-2
No files found.
dlls/shlwapi/reg.c
View file @
84361d5a
...
...
@@ -396,7 +396,67 @@ LONG WINAPI SHRegGetUSValueW(
if
(
ret
==
ERROR_SUCCESS
)
{
ret
=
SHRegQueryUSValueW
(
myhuskey
,
pValue
,
pwType
,
pvData
,
pcbData
,
flagIgnoreHKCU
,
pDefaultData
,
wDefaultDataSize
);
wDefaultDataSize
);
SHRegCloseUSKey
(
myhuskey
);
}
return
ret
;
}
/*************************************************************************
* SHRegSetUSValueA [SHLWAPI.@]
*/
LONG
WINAPI
SHRegSetUSValueA
(
LPCSTR
pszSubKey
,
LPCSTR
pszValue
,
DWORD
dwType
,
LPVOID
pvData
,
DWORD
cbData
,
DWORD
dwFlags
)
{
HUSKEY
myhuskey
;
LONG
ret
;
BOOL
ignoreHKCU
;
if
(
!
pvData
)
return
ERROR_INVALID_FUNCTION
;
TRACE
(
"key '%s', value '%s', datalen %ld
\n
"
,
debugstr_a
(
pszSubKey
),
debugstr_a
(
pszValue
),
cbData
);
ignoreHKCU
=
((
dwFlags
==
SHREGSET_HKLM
)
||
(
dwFlags
==
SHREGSET_FORCE_HKLM
));
ret
=
SHRegOpenUSKeyA
(
pszSubKey
,
0x1
,
0
,
&
myhuskey
,
ignoreHKCU
);
if
(
ret
==
ERROR_SUCCESS
)
{
ret
=
SHRegWriteUSValueA
(
myhuskey
,
pszValue
,
dwType
,
pvData
,
cbData
,
dwFlags
);
SHRegCloseUSKey
(
myhuskey
);
}
return
ret
;
}
/*************************************************************************
* SHRegSetUSValueW [SHLWAPI.@]
*/
LONG
WINAPI
SHRegSetUSValueW
(
LPCWSTR
pszSubKey
,
LPCWSTR
pszValue
,
DWORD
dwType
,
LPVOID
pvData
,
DWORD
cbData
,
DWORD
dwFlags
)
{
HUSKEY
myhuskey
;
LONG
ret
;
BOOL
ignoreHKCU
;
if
(
!
pvData
)
return
ERROR_INVALID_FUNCTION
;
TRACE
(
"key '%s', value '%s', datalen %ld
\n
"
,
debugstr_w
(
pszSubKey
),
debugstr_w
(
pszValue
),
cbData
);
ignoreHKCU
=
((
dwFlags
==
SHREGSET_HKLM
)
||
(
dwFlags
==
SHREGSET_FORCE_HKLM
));
ret
=
SHRegOpenUSKeyW
(
pszSubKey
,
0x1
,
0
,
&
myhuskey
,
ignoreHKCU
);
if
(
ret
==
ERROR_SUCCESS
)
{
ret
=
SHRegWriteUSValueW
(
myhuskey
,
pszValue
,
dwType
,
pvData
,
cbData
,
dwFlags
);
SHRegCloseUSKey
(
myhuskey
);
}
return
ret
;
...
...
dlls/shlwapi/shlwapi.spec
View file @
84361d5a
...
...
@@ -594,8 +594,8 @@
@ stdcall SHRegQueryInfoUSKeyW ( long ptr ptr ptr ptr long ) SHRegQueryInfoUSKeyW
@ stdcall SHRegQueryUSValueA ( long str ptr ptr ptr long ptr long ) SHRegQueryUSValueA
@ stdcall SHRegQueryUSValueW ( long wstr ptr ptr ptr long ptr long ) SHRegQueryUSValueW
@ st
ub
SHRegSetUSValueA
@ st
ub
SHRegSetUSValueW
@ st
dcall SHRegSetUSValueA ( str str long ptr long long)
SHRegSetUSValueA
@ st
dcall SHRegSetUSValueW ( wstr wstr long ptr long long)
SHRegSetUSValueW
@ stdcall SHRegWriteUSValueA (long str long ptr long long) SHRegWriteUSValueA
@ stdcall SHRegWriteUSValueW (long str long ptr long long) SHRegWriteUSValueW
@ stdcall SHSetValueA (long str str long ptr long) SHSetValueA
...
...
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