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
c51e9964
Commit
c51e9964
authored
Nov 07, 2005
by
Uwe Bonnes
Committed by
Alexandre Julliard
Nov 07, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Semi-stub implementation for SHRegGetValue(A|W).
parent
217e499d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
0 deletions
+64
-0
reg.c
dlls/shlwapi/reg.c
+62
-0
shlwapi.spec
dlls/shlwapi/shlwapi.spec
+2
-0
No files found.
dlls/shlwapi/reg.c
View file @
c51e9964
...
...
@@ -1140,6 +1140,68 @@ DWORD WINAPI SHGetValueA(HKEY hKey, LPCSTR lpszSubKey, LPCSTR lpszValue,
}
/*************************************************************************
* SHRegGetValueA [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
* srrf [I] Flags for restricting returned data
* 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
SHRegGetValueA
(
HKEY
hKey
,
LPCSTR
lpszSubKey
,
LPCSTR
lpszValue
,
DWORD
srrfFlags
,
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
);
FIXME
(
"Semi-Stub: Find meaning and implement handling of SRFF Flags 0x%08lx
\n
"
,
srrfFlags
);
dwRet
=
RegOpenKeyExA
(
hKey
,
lpszSubKey
,
0
,
KEY_QUERY_VALUE
,
&
hSubKey
);
if
(
!
dwRet
)
{
/* SHQueryValueEx expands Environment strings */
dwRet
=
SHQueryValueExA
(
hSubKey
,
lpszValue
,
0
,
pwType
,
pvData
,
pcbData
);
RegCloseKey
(
hSubKey
);
}
return
dwRet
;
}
/*************************************************************************
* SHReg GetRegValueW [SHLWAPI.@]
*
* See SHGetValueA.
*/
DWORD
WINAPI
SHRegGetValueW
(
HKEY
hKey
,
LPCWSTR
lpszSubKey
,
LPCWSTR
lpszValue
,
DWORD
srrfFlags
,
LPDWORD
pwType
,
LPVOID
pvData
,
LPDWORD
pcbData
)
{
DWORD
dwRet
=
0
;
HKEY
hSubKey
=
0
;
TRACE
(
"(hkey=%p,%s,%s,0x%08lx, %p,%p,%p)
\n
"
,
hKey
,
debugstr_w
(
lpszSubKey
),
debugstr_w
(
lpszValue
),
srrfFlags
,
pwType
,
pvData
,
pcbData
);
FIXME
(
"Semi-Stub: Find meaning and implement handling of SRFF Flags 0x%08lx
\n
"
,
srrfFlags
);
dwRet
=
RegOpenKeyExW
(
hKey
,
lpszSubKey
,
0
,
KEY_QUERY_VALUE
,
&
hSubKey
);
if
(
!
dwRet
)
{
dwRet
=
SHQueryValueExW
(
hSubKey
,
lpszValue
,
0
,
pwType
,
pvData
,
pcbData
);
RegCloseKey
(
hSubKey
);
}
return
dwRet
;
}
/*************************************************************************
* SHGetValueW [SHLWAPI.@]
*
* See SHGetValueA.
...
...
dlls/shlwapi/shlwapi.spec
View file @
c51e9964
...
...
@@ -726,6 +726,8 @@
@ stdcall SHRegGetPathW(long wstr wstr ptr long)
@ stdcall SHRegGetUSValueA ( str str ptr ptr ptr long ptr long )
@ stdcall SHRegGetUSValueW ( wstr wstr ptr ptr ptr long ptr long )
@ stdcall SHRegGetValueA ( long str str long ptr ptr ptr )
@ stdcall SHRegGetValueW ( long wstr wstr long ptr ptr ptr )
@ stdcall SHRegOpenUSKeyA ( str long long long long )
@ stdcall SHRegOpenUSKeyW ( wstr long long long long )
@ stdcall SHRegQueryInfoUSKeyA ( long ptr ptr ptr ptr long )
...
...
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