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
f1706b03
Commit
f1706b03
authored
Apr 22, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 22, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Implement SHRegCreateUSKeyA().
parent
3f0a2434
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
18 deletions
+35
-18
reg.c
dlls/shlwapi/reg.c
+35
-18
No files found.
dlls/shlwapi/reg.c
View file @
f1706b03
...
...
@@ -209,31 +209,48 @@ LONG WINAPI SHRegCloseUSKey(
/*************************************************************************
* SHRegCreateUSKeyA [SHLWAPI.@]
*
* Create or open a user-specific registry key.
*
* PARAMS
* pszPath [I] Key name to create or open.
* samDesired [I] Wanted security access.
* hRelativeUSKey [I] Base path if pszPath is relative. NULL otherwise.
* phNewUSKey [O] Receives a handle to the new or opened key.
* dwFlags [I] Base key under which the key should be opened.
*
* RETURNS
* Success: ERROR_SUCCESS
* Failure: Nonzero error code from winerror.h
* See SHRegCreateUSKeyW.
*/
LONG
WINAPI
SHRegCreateUSKeyA
(
LPCSTR
p
szPath
,
REGSAM
samDesired
,
HUSKEY
hRelativeUSK
ey
,
PHUSKEY
phNewUSKey
,
DWORD
dwF
lags
)
LONG
WINAPI
SHRegCreateUSKeyA
(
LPCSTR
p
ath
,
REGSAM
samDesired
,
HUSKEY
relative_k
ey
,
PHUSKEY
new_uskey
,
DWORD
f
lags
)
{
FIXME
(
"(%s, 0x%08x, %p, %p, 0x%08x) stub
\n
"
,
debugstr_a
(
pszPath
),
samDesired
,
hRelativeUSKey
,
phNewUSKey
,
dwFlags
);
return
ERROR_SUCCESS
;
WCHAR
*
pathW
;
LONG
ret
;
TRACE
(
"(%s, 0x%08x, %p, %p, 0x%08x)
\n
"
,
debugstr_a
(
path
),
samDesired
,
relative_key
,
new_uskey
,
flags
);
if
(
path
)
{
INT
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
path
,
-
1
,
NULL
,
0
);
pathW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
if
(
!
pathW
)
return
ERROR_NOT_ENOUGH_MEMORY
;
MultiByteToWideChar
(
CP_ACP
,
0
,
path
,
-
1
,
pathW
,
len
);
}
else
pathW
=
NULL
;
ret
=
SHRegCreateUSKeyW
(
pathW
,
samDesired
,
relative_key
,
new_uskey
,
flags
);
HeapFree
(
GetProcessHeap
(),
0
,
pathW
);
return
ret
;
}
/*************************************************************************
* SHRegCreateUSKeyW [SHLWAPI.@]
*
* See SHRegCreateUSKeyA.
* Create or open a user-specific registry key.
*
* PARAMS
* path [I] Key name to create or open.
* samDesired [I] Wanted security access.
* relative_key [I] Base path if 'path' is relative. NULL otherwise.
* new_uskey [O] Receives a handle to the new or opened key.
* flags [I] Base key under which the key should be opened.
*
* RETURNS
* Success: ERROR_SUCCESS
* Failure: Nonzero error code from winerror.h
*/
LONG
WINAPI
SHRegCreateUSKeyW
(
LPCWSTR
path
,
REGSAM
samDesired
,
HUSKEY
relative_key
,
PHUSKEY
new_uskey
,
DWORD
flags
)
...
...
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