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
ec58bd31
Commit
ec58bd31
authored
May 11, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Forward SHGetValue() to shcore.dll.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
eed50a78
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
70 deletions
+4
-70
api-ms-win-downlevel-shlwapi-l2-1-0.spec
...l-shlwapi-l2-1-0/api-ms-win-downlevel-shlwapi-l2-1-0.spec
+2
-2
reg.c
dlls/shlwapi/reg.c
+0
-66
shlwapi.spec
dlls/shlwapi/shlwapi.spec
+2
-2
No files found.
dlls/api-ms-win-downlevel-shlwapi-l2-1-0/api-ms-win-downlevel-shlwapi-l2-1-0.spec
View file @
ec58bd31
...
...
@@ -30,8 +30,8 @@
@ stdcall SHEnumValueA(long long str ptr ptr ptr ptr) shlwapi.SHEnumValueA
@ stdcall SHEnumValueW(long long wstr ptr ptr ptr ptr) shlwapi.SHEnumValueW
@ stdcall SHGetThreadRef(ptr) shlwapi.SHGetThreadRef
@ stdcall SHGetValueA(
long str str ptr ptr ptr
) shlwapi.SHGetValueA
@ stdcall SHGetValueW(
long wstr wstr ptr ptr ptr
) shlwapi.SHGetValueW
@ stdcall SHGetValueA(
long str str ptr ptr ptr
) shlwapi.SHGetValueA
@ stdcall SHGetValueW(
long wstr wstr ptr ptr ptr
) shlwapi.SHGetValueW
@ stdcall SHOpenRegStream2A(long str str long) shlwapi.SHOpenRegStream2A
@ stdcall SHOpenRegStream2W(long wstr wstr long) shlwapi.SHOpenRegStream2W
@ stdcall SHOpenRegStreamA(long str str long) shlwapi.SHOpenRegStreamA
...
...
dlls/shlwapi/reg.c
View file @
ec58bd31
...
...
@@ -48,72 +48,6 @@ INT WINAPI SHStringFromGUIDW(REFGUID,LPWSTR,INT);
HRESULT
WINAPI
SHRegGetCLSIDKeyW
(
REFGUID
,
LPCWSTR
,
BOOL
,
BOOL
,
PHKEY
);
/*************************************************************************
* SHGetValueA [SHLWAPI.@]
*
* Get a value from the registry.
*
* PARAMS
* hKey [I] Handle to registry key
* lpszSubKey [I] Name of sub key containing value to get
* lpszValue [I] Name of value to get
* pwType [O] Pointer to the values type
* pvData [O] Pointer to the values data
* pcbData [O] Pointer to the values size
*
* RETURNS
* Success: ERROR_SUCCESS. Output parameters contain the details read.
* Failure: An error code from RegOpenKeyExA() or SHQueryValueExA().
*/
DWORD
WINAPI
SHGetValueA
(
HKEY
hKey
,
LPCSTR
lpszSubKey
,
LPCSTR
lpszValue
,
LPDWORD
pwType
,
LPVOID
pvData
,
LPDWORD
pcbData
)
{
DWORD
dwRet
=
0
;
HKEY
hSubKey
=
0
;
TRACE
(
"(hkey=%p,%s,%s,%p,%p,%p)
\n
"
,
hKey
,
debugstr_a
(
lpszSubKey
),
debugstr_a
(
lpszValue
),
pwType
,
pvData
,
pcbData
);
/* lpszSubKey can be 0. In this case the value is taken from the
* current key.
*/
if
(
lpszSubKey
)
dwRet
=
RegOpenKeyExA
(
hKey
,
lpszSubKey
,
0
,
KEY_QUERY_VALUE
,
&
hSubKey
);
if
(
!
dwRet
)
{
/* SHQueryValueEx expands Environment strings */
dwRet
=
SHQueryValueExA
(
hSubKey
?
hSubKey
:
hKey
,
lpszValue
,
0
,
pwType
,
pvData
,
pcbData
);
if
(
hSubKey
)
RegCloseKey
(
hSubKey
);
}
return
dwRet
;
}
/*************************************************************************
* SHGetValueW [SHLWAPI.@]
*
* See SHGetValueA.
*/
DWORD
WINAPI
SHGetValueW
(
HKEY
hKey
,
LPCWSTR
lpszSubKey
,
LPCWSTR
lpszValue
,
LPDWORD
pwType
,
LPVOID
pvData
,
LPDWORD
pcbData
)
{
DWORD
dwRet
=
0
;
HKEY
hSubKey
=
0
;
TRACE
(
"(hkey=%p,%s,%s,%p,%p,%p)
\n
"
,
hKey
,
debugstr_w
(
lpszSubKey
),
debugstr_w
(
lpszValue
),
pwType
,
pvData
,
pcbData
);
if
(
lpszSubKey
)
dwRet
=
RegOpenKeyExW
(
hKey
,
lpszSubKey
,
0
,
KEY_QUERY_VALUE
,
&
hSubKey
);
if
(
!
dwRet
)
{
dwRet
=
SHQueryValueExW
(
hSubKey
?
hSubKey
:
hKey
,
lpszValue
,
0
,
pwType
,
pvData
,
pcbData
);
if
(
hSubKey
)
RegCloseKey
(
hSubKey
);
}
return
dwRet
;
}
/*************************************************************************
* SHSetValueA [SHLWAPI.@]
*
* Set a value in the registry.
...
...
dlls/shlwapi/shlwapi.spec
View file @
ec58bd31
...
...
@@ -702,8 +702,8 @@
@ stdcall SHEnumValueW(long long wstr ptr ptr ptr ptr) shcore.SHEnumValueW
@ stdcall SHGetInverseCMAP ( ptr long )
@ stdcall SHGetThreadRef(ptr) shcore.SHGetThreadRef
@ stdcall
SHGetValueA ( long str str ptr ptr ptr
)
@ stdcall
SHGetValueW ( long wstr wstr ptr ptr ptr
)
@ stdcall
-import SHGetValueA(long str str ptr ptr ptr
)
@ stdcall
-import SHGetValueW(long wstr wstr ptr ptr ptr
)
@ stdcall SHIsLowMemoryMachine(long)
@ stdcall SHOpenRegStream2A(long str str long) shcore.SHOpenRegStream2A
@ stdcall SHOpenRegStream2W(long wstr wstr long) shcore.SHOpenRegStream2W
...
...
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