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
52bd8542
Commit
52bd8542
authored
Oct 12, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Added SKSetValueW implementation.
parent
6aa94942
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
2 deletions
+27
-2
ordinal.c
dlls/shlwapi/ordinal.c
+25
-0
shlwapi.spec
dlls/shlwapi/shlwapi.spec
+2
-2
No files found.
dlls/shlwapi/ordinal.c
View file @
52bd8542
...
...
@@ -4673,9 +4673,34 @@ HRESULT WINAPI SKGetValueW(DWORD flags, LPCWSTR subkey, LPCWSTR value, DWORD *ty
debugstr_w
(
value
),
type
,
data
,
count
);
hkey
=
SHGetShellKey
(
flags
,
subkey
,
FALSE
);
if
(
!
hkey
)
return
HRESULT_FROM_WIN32
(
ERROR_FILE_NOT_FOUND
);
ret
=
SHQueryValueExW
(
hkey
,
value
,
NULL
,
type
,
data
,
count
);
RegCloseKey
(
hkey
);
return
HRESULT_FROM_WIN32
(
ret
);
}
/***********************************************************************
* SKSetValueW (SHLWAPI.516)
*/
HRESULT
WINAPI
SKSetValueW
(
DWORD
flags
,
LPCWSTR
subkey
,
LPCWSTR
value
,
DWORD
type
,
void
*
data
,
DWORD
count
)
{
DWORD
ret
;
HKEY
hkey
;
TRACE
(
"(0x%x, %s, %s, %x, %p, %d)
\n
"
,
flags
,
debugstr_w
(
subkey
),
debugstr_w
(
value
),
type
,
data
,
count
);
hkey
=
SHGetShellKey
(
flags
,
subkey
,
TRUE
);
if
(
!
hkey
)
return
HRESULT_FROM_WIN32
(
ERROR_FILE_NOT_FOUND
);
ret
=
RegSetValueExW
(
hkey
,
value
,
0
,
type
,
data
,
count
);
RegCloseKey
(
hkey
);
return
HRESULT_FROM_WIN32
(
ret
);
}
...
...
dlls/shlwapi/shlwapi.spec
View file @
52bd8542
...
...
@@ -509,8 +509,8 @@
513 stub -noname IStream_WritePidl
514 stdcall -noname IUnknown_ProfferService(ptr ptr ptr ptr)
515 stdcall -noname SHGetViewStatePropertyBag(ptr wstr long ptr ptr)
516 stdcall -noname SKGetValueW(long wstr wstr
long long long
)
517 st
ub -noname SKSetValueW
516 stdcall -noname SKGetValueW(long wstr wstr
ptr ptr ptr
)
517 st
dcall -noname SKSetValueW(long wstr wstr long ptr long)
518 stdcall -noname SKDeleteValueW(long wstr wstr)
519 stdcall -noname SKAllocValueW(long wstr wstr ptr ptr ptr)
520 stub -noname SHPropertyBag_ReadBSTR
...
...
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