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
0ce727e4
Commit
0ce727e4
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 SKAllocValueW implementation.
parent
c2f25a22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
1 deletion
+38
-1
ordinal.c
dlls/shlwapi/ordinal.c
+37
-0
shlwapi.spec
dlls/shlwapi/shlwapi.spec
+1
-1
No files found.
dlls/shlwapi/ordinal.c
View file @
0ce727e4
...
...
@@ -4604,6 +4604,43 @@ HRESULT WINAPI IUnknown_OnFocusChangeIS(LPUNKNOWN lpUnknown, LPUNKNOWN pFocusObj
}
/***********************************************************************
* SKAllocValueW (SHLWAPI.519)
*/
HRESULT
WINAPI
SKAllocValueW
(
DWORD
flags
,
LPCWSTR
subkey
,
LPCWSTR
value
,
DWORD
*
type
,
LPVOID
*
data
,
DWORD
*
count
)
{
DWORD
ret
,
size
;
HKEY
hkey
;
TRACE
(
"(0x%x, %s, %s, %p, %p, %p)
\n
"
,
flags
,
debugstr_w
(
subkey
),
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
,
NULL
,
&
size
);
if
(
ret
)
{
RegCloseKey
(
hkey
);
return
HRESULT_FROM_WIN32
(
ret
);
}
size
+=
2
;
*
data
=
LocalAlloc
(
0
,
size
);
if
(
!*
data
)
{
RegCloseKey
(
hkey
);
return
E_OUTOFMEMORY
;
}
ret
=
SHQueryValueExW
(
hkey
,
value
,
NULL
,
type
,
*
data
,
&
size
);
if
(
count
)
*
count
=
size
;
RegCloseKey
(
hkey
);
return
HRESULT_FROM_WIN32
(
ret
);
}
/***********************************************************************
* SKGetValueW (SHLWAPI.516)
*/
HRESULT
WINAPI
SKGetValueW
(
DWORD
flags
,
LPCWSTR
subkey
,
LPCWSTR
value
,
DWORD
*
type
,
...
...
dlls/shlwapi/shlwapi.spec
View file @
0ce727e4
...
...
@@ -512,7 +512,7 @@
516 stdcall -noname SKGetValueW(long wstr wstr long long long)
517 stub -noname SKSetValueW
518 stub -noname SKDeleteValueW
519 st
ub -noname SKAllocValueW
519 st
dcall -noname SKAllocValueW(long wstr wstr ptr ptr ptr)
520 stub -noname SHPropertyBag_ReadBSTR
521 stub -noname SHPropertyBag_ReadPOINTL
522 stub -noname SHPropertyBag_WritePOINTL
...
...
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