Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
f73358f0
Commit
f73358f0
authored
24 years ago
by
Marcus Meissner
Committed by
Alexandre Julliard
24 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added some ordinal stubs, implemented SHDeleteValue*, SHSetValue*.
parent
9811129d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/shlwapi/ordinal.c
+34
-0
34 additions, 0 deletions
dlls/shlwapi/ordinal.c
dlls/shlwapi/reg.c
+66
-3
66 additions, 3 deletions
dlls/shlwapi/reg.c
dlls/shlwapi/shlwapi.spec
+10
-8
10 additions, 8 deletions
dlls/shlwapi/shlwapi.spec
with
110 additions
and
11 deletions
dlls/shlwapi/ordinal.c
+
34
−
0
View file @
f73358f0
...
...
@@ -35,6 +35,15 @@ DWORD WINAPI SHLWAPI_1 (
return
0
;
}
/*************************************************************************
* SHLWAPI_2 [SHLWAPI.2]
*/
DWORD
WINAPI
SHLWAPI_2
(
LPCWSTR
x
,
LPVOID
y
)
{
FIXME
(
"(%s,%p)
\n
"
,
debugstr_w
(
x
),
y
);
return
0
;
}
/*************************************************************************
* SHLWAPI_16 [SHLWAPI.16]
*/
...
...
@@ -92,6 +101,15 @@ DWORD WINAPI SHLWAPI_24 (
guid
->
Data4
[
4
],
guid
->
Data4
[
5
],
guid
->
Data4
[
6
],
guid
->
Data4
[
7
]
);
return
MultiByteToWideChar
(
CP_ACP
,
0
,
xguid
,
-
1
,
str
,
cmax
);
}
/*************************************************************************
* SHLWAPI_38 [SHLWAPI.38]
*
*/
DWORD
WINAPI
SHLWAPI_38
(
DWORD
x
)
{
FIXME
(
"(%lx),stub!
\n
"
,
x
);
return
0
;
}
/*************************************************************************
* SHLWAPI_137
*/
...
...
@@ -101,6 +119,14 @@ DWORD WINAPI SHLWAPI_137(
FIXME
(
"(%#x)stub
\n
"
,
what
);
return
0
;
}
/*************************************************************************
* SHLWAPI_141
*/
DWORD
WINAPI
SHLWAPI_141
(
LPVOID
ptr
,
DWORD
x
,
LPVOID
ptr2
)
{
FIXME
(
"(%p,%ld,%p), stub
\n
"
,
ptr
,
x
,
ptr2
);
return
0
;
}
/*************************************************************************
* SHLWAPI_151 [SHLWAPI.151]
*/
...
...
@@ -372,6 +398,14 @@ DWORD WINAPI SHLWAPI_346 (
return
lstrlenW
(
dest
)
+
1
;
}
/*************************************************************************
* SHLWAPI_376 [SHLWAPI.377]
*/
DWORD
WINAPI
SHLWAPI_376
(
LONG
x
)
{
FIXME
(
"(0x%08lx)stub
\n
"
,
x
);
return
0xabba1245
;
}
/*************************************************************************
* SHLWAPI_377 [SHLWAPI.377]
...
...
This diff is collapsed.
Click to expand it.
dlls/shlwapi/reg.c
+
66
−
3
View file @
f73358f0
...
...
@@ -172,7 +172,7 @@ DWORD WINAPI SHGetValueW(
/*************************************************************************
* SHSetValueA [SHLWAPI.@]
*/
DWORD
WINAPI
SHSetValueA
(
HRESULT
WINAPI
SHSetValueA
(
HKEY
hkey
,
LPCSTR
pszSubKey
,
LPCSTR
pszValue
,
...
...
@@ -180,8 +180,37 @@ DWORD WINAPI SHSetValueA(
LPCVOID
pvData
,
DWORD
cbData
)
{
FIXME
(
"(%s %s)stub
\n
"
,
pszSubKey
,
pszValue
);
return
1
;
HKEY
subkey
;
HRESULT
hres
;
hres
=
RegCreateKeyA
(
hkey
,
pszSubKey
,
&
subkey
);
if
(
!
hres
)
return
hres
;
hres
=
RegSetValueExA
(
subkey
,
pszValue
,
0
,
dwType
,
pvData
,
cbData
);
RegCloseKey
(
subkey
);
return
hres
;
}
/*************************************************************************
* SHSetValueW [SHLWAPI.@]
*/
HRESULT
WINAPI
SHSetValueW
(
HKEY
hkey
,
LPCWSTR
pszSubKey
,
LPCWSTR
pszValue
,
DWORD
dwType
,
LPCVOID
pvData
,
DWORD
cbData
)
{
HKEY
subkey
;
HRESULT
hres
;
hres
=
RegCreateKeyW
(
hkey
,
pszSubKey
,
&
subkey
);
if
(
!
hres
)
return
hres
;
hres
=
RegSetValueExW
(
subkey
,
pszValue
,
0
,
dwType
,
pvData
,
cbData
);
RegCloseKey
(
subkey
);
return
hres
;
}
/*************************************************************************
...
...
@@ -304,6 +333,40 @@ HRESULT WINAPI SHDeleteKeyW(
return
0
;
}
/*************************************************************************
* SHDeleteValueA [SHLWAPI.@]
*
* Function opens the key, get/set/delete the value, then close the key.
*/
HRESULT
WINAPI
SHDeleteValueA
(
HKEY
hkey
,
LPCSTR
pszSubKey
,
LPCSTR
pszValue
)
{
HKEY
subkey
;
HRESULT
hres
;
hres
=
RegOpenKeyA
(
hkey
,
pszSubKey
,
&
subkey
);
if
(
hres
)
return
hres
;
hres
=
RegDeleteValueA
(
subkey
,
pszValue
);
RegCloseKey
(
subkey
);
return
hres
;
}
/*************************************************************************
* SHDeleteValueW [SHLWAPI.@]
*
* Function opens the key, get/set/delete the value, then close the key.
*/
HRESULT
WINAPI
SHDeleteValueW
(
HKEY
hkey
,
LPCWSTR
pszSubKey
,
LPCWSTR
pszValue
)
{
HKEY
subkey
;
HRESULT
hres
;
hres
=
RegOpenKeyW
(
hkey
,
pszSubKey
,
&
subkey
);
if
(
hres
)
return
hres
;
hres
=
RegDeleteValueW
(
subkey
,
pszValue
);
RegCloseKey
(
subkey
);
return
hres
;
}
/*************************************************************************
* SHDeleteEmptyKeyA [SHLWAPI.@]
*
...
...
This diff is collapsed.
Click to expand it.
dlls/shlwapi/shlwapi.spec
+
10
−
8
View file @
f73358f0
...
...
@@ -11,7 +11,7 @@ import ntdll.dll
debug_channels (shell)
1 stdcall @(ptr ptr) SHLWAPI_1
2 st
ub @
2 st
dcall @(wstr ptr) SHLWAPI_2
3 stub @
4 stub @
5 stub @
...
...
@@ -47,7 +47,7 @@ debug_channels (shell)
35 stub @
36 stub @
37 stub @
38 st
ub @
38 st
dcall @(long) SHLWAPI_38
39 stub @
40 stub @
41 stub @
...
...
@@ -150,7 +150,7 @@ debug_channels (shell)
138 stub @
139 stub @
140 stub @
141 st
ub @
141 st
dcall @(ptr long ptr) SHLWAPI_141
142 stub @
143 stub @
144 stub @
...
...
@@ -385,7 +385,7 @@ debug_channels (shell)
373 stub @
374 stub @
375 stub @
376 st
ub @
376 st
dcall @(long) SHLWAPI_376
377 stdcall @(long long long) SHLWAPI_377
378 stdcall @(long long long) SHLWAPI_378
379 stub @
...
...
@@ -567,8 +567,8 @@ debug_channels (shell)
@ stdcall SHDeleteKeyW(long wstr) SHDeleteKeyW
@ stub SHDeleteOrphanKeyA
@ stub SHDeleteOrphanKeyW
@ st
ub
SHDeleteValueA
@ st
ub
SHDeleteValueW
@ st
dcall SHDeleteValueA(long str str)
SHDeleteValueA
@ st
dcall SHDeleteValueW(long wstr wstr)
SHDeleteValueW
@ stub SHEnumKeyExA
@ stub SHEnumKeyExW
@ stub SHEnumValueA
...
...
@@ -610,8 +610,8 @@ debug_channels (shell)
@ stub SHRegSetUSValueW
@ stub SHRegWriteUSValueA
@ stub SHRegWriteUSValueW
@ stdcall SHSetValueA (long str str long ptr long) SHSetValueA
@ st
ub
SHSetValueW
@ stdcall SHSetValueA (long
str
str long ptr long) SHSetValueA
@ st
dcall SHSetValueW (long wstr wstr long ptr long)
SHSetValueW
@ stdcall StrCSpnA (str str) StrCSpnA
@ stub StrCSpnIA
@ stub StrCSpnIW
...
...
@@ -698,3 +698,5 @@ debug_channels (shell)
#@ stdcall StrRetToStrW (ptr ptr ptr) StrRetToStrW
@ stdcall SHRegGetPathA(long str str ptr long)SHRegGetPathA
@ stdcall SHRegGetPathW(long wstr wstr ptr long)SHRegGetPathW
@ stub SHCopyKeyW
@ stub SHAutoComplete
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment