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
f73358f0
Commit
f73358f0
authored
Nov 25, 2000
by
Marcus Meissner
Committed by
Alexandre Julliard
Nov 25, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some ordinal stubs, implemented SHDeleteValue*, SHSetValue*.
parent
9811129d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
109 additions
and
10 deletions
+109
-10
ordinal.c
dlls/shlwapi/ordinal.c
+34
-0
reg.c
dlls/shlwapi/reg.c
+66
-3
shlwapi.spec
dlls/shlwapi/shlwapi.spec
+9
-7
No files found.
dlls/shlwapi/ordinal.c
View file @
f73358f0
...
@@ -36,6 +36,15 @@ DWORD WINAPI SHLWAPI_1 (
...
@@ -36,6 +36,15 @@ DWORD WINAPI SHLWAPI_1 (
}
}
/*************************************************************************
/*************************************************************************
* 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]
* SHLWAPI_16 [SHLWAPI.16]
*/
*/
HRESULT
WINAPI
SHLWAPI_16
(
HRESULT
WINAPI
SHLWAPI_16
(
...
@@ -92,6 +101,15 @@ DWORD WINAPI SHLWAPI_24 (
...
@@ -92,6 +101,15 @@ DWORD WINAPI SHLWAPI_24 (
guid
->
Data4
[
4
],
guid
->
Data4
[
5
],
guid
->
Data4
[
6
],
guid
->
Data4
[
7
]
);
guid
->
Data4
[
4
],
guid
->
Data4
[
5
],
guid
->
Data4
[
6
],
guid
->
Data4
[
7
]
);
return
MultiByteToWideChar
(
CP_ACP
,
0
,
xguid
,
-
1
,
str
,
cmax
);
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
* SHLWAPI_137
*/
*/
...
@@ -102,6 +120,14 @@ DWORD WINAPI SHLWAPI_137(
...
@@ -102,6 +120,14 @@ DWORD WINAPI SHLWAPI_137(
return
0
;
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]
* SHLWAPI_151 [SHLWAPI.151]
*/
*/
DWORD
WINAPI
SHLWAPI_151
(
void
)
DWORD
WINAPI
SHLWAPI_151
(
void
)
...
@@ -372,6 +398,14 @@ DWORD WINAPI SHLWAPI_346 (
...
@@ -372,6 +398,14 @@ DWORD WINAPI SHLWAPI_346 (
return
lstrlenW
(
dest
)
+
1
;
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]
* SHLWAPI_377 [SHLWAPI.377]
...
...
dlls/shlwapi/reg.c
View file @
f73358f0
...
@@ -172,7 +172,7 @@ DWORD WINAPI SHGetValueW(
...
@@ -172,7 +172,7 @@ DWORD WINAPI SHGetValueW(
/*************************************************************************
/*************************************************************************
* SHSetValueA [SHLWAPI.@]
* SHSetValueA [SHLWAPI.@]
*/
*/
DWORD
WINAPI
SHSetValueA
(
HRESULT
WINAPI
SHSetValueA
(
HKEY
hkey
,
HKEY
hkey
,
LPCSTR
pszSubKey
,
LPCSTR
pszSubKey
,
LPCSTR
pszValue
,
LPCSTR
pszValue
,
...
@@ -180,8 +180,37 @@ DWORD WINAPI SHSetValueA(
...
@@ -180,8 +180,37 @@ DWORD WINAPI SHSetValueA(
LPCVOID
pvData
,
LPCVOID
pvData
,
DWORD
cbData
)
DWORD
cbData
)
{
{
FIXME
(
"(%s %s)stub
\n
"
,
pszSubKey
,
pszValue
);
HKEY
subkey
;
return
1
;
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
;
}
}
/*************************************************************************
/*************************************************************************
...
@@ -305,6 +334,40 @@ HRESULT WINAPI SHDeleteKeyW(
...
@@ -305,6 +334,40 @@ HRESULT WINAPI SHDeleteKeyW(
}
}
/*************************************************************************
/*************************************************************************
* 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.@]
* SHDeleteEmptyKeyA [SHLWAPI.@]
*
*
* It appears this function is made available to account for the differences
* It appears this function is made available to account for the differences
...
...
dlls/shlwapi/shlwapi.spec
View file @
f73358f0
...
@@ -11,7 +11,7 @@ import ntdll.dll
...
@@ -11,7 +11,7 @@ import ntdll.dll
debug_channels (shell)
debug_channels (shell)
1 stdcall @(ptr ptr) SHLWAPI_1
1 stdcall @(ptr ptr) SHLWAPI_1
2 st
ub @
2 st
dcall @(wstr ptr) SHLWAPI_2
3 stub @
3 stub @
4 stub @
4 stub @
5 stub @
5 stub @
...
@@ -47,7 +47,7 @@ debug_channels (shell)
...
@@ -47,7 +47,7 @@ debug_channels (shell)
35 stub @
35 stub @
36 stub @
36 stub @
37 stub @
37 stub @
38 st
ub @
38 st
dcall @(long) SHLWAPI_38
39 stub @
39 stub @
40 stub @
40 stub @
41 stub @
41 stub @
...
@@ -150,7 +150,7 @@ debug_channels (shell)
...
@@ -150,7 +150,7 @@ debug_channels (shell)
138 stub @
138 stub @
139 stub @
139 stub @
140 stub @
140 stub @
141 st
ub @
141 st
dcall @(ptr long ptr) SHLWAPI_141
142 stub @
142 stub @
143 stub @
143 stub @
144 stub @
144 stub @
...
@@ -385,7 +385,7 @@ debug_channels (shell)
...
@@ -385,7 +385,7 @@ debug_channels (shell)
373 stub @
373 stub @
374 stub @
374 stub @
375 stub @
375 stub @
376 st
ub @
376 st
dcall @(long) SHLWAPI_376
377 stdcall @(long long long) SHLWAPI_377
377 stdcall @(long long long) SHLWAPI_377
378 stdcall @(long long long) SHLWAPI_378
378 stdcall @(long long long) SHLWAPI_378
379 stub @
379 stub @
...
@@ -567,8 +567,8 @@ debug_channels (shell)
...
@@ -567,8 +567,8 @@ debug_channels (shell)
@ stdcall SHDeleteKeyW(long wstr) SHDeleteKeyW
@ stdcall SHDeleteKeyW(long wstr) SHDeleteKeyW
@ stub SHDeleteOrphanKeyA
@ stub SHDeleteOrphanKeyA
@ stub SHDeleteOrphanKeyW
@ stub SHDeleteOrphanKeyW
@ st
ub
SHDeleteValueA
@ st
dcall SHDeleteValueA(long str str)
SHDeleteValueA
@ st
ub
SHDeleteValueW
@ st
dcall SHDeleteValueW(long wstr wstr)
SHDeleteValueW
@ stub SHEnumKeyExA
@ stub SHEnumKeyExA
@ stub SHEnumKeyExW
@ stub SHEnumKeyExW
@ stub SHEnumValueA
@ stub SHEnumValueA
...
@@ -611,7 +611,7 @@ debug_channels (shell)
...
@@ -611,7 +611,7 @@ debug_channels (shell)
@ stub SHRegWriteUSValueA
@ stub SHRegWriteUSValueA
@ stub SHRegWriteUSValueW
@ stub SHRegWriteUSValueW
@ stdcall SHSetValueA (long str str long ptr long) SHSetValueA
@ stdcall SHSetValueA (long str str long ptr long) SHSetValueA
@ st
ub
SHSetValueW
@ st
dcall SHSetValueW (long wstr wstr long ptr long)
SHSetValueW
@ stdcall StrCSpnA (str str) StrCSpnA
@ stdcall StrCSpnA (str str) StrCSpnA
@ stub StrCSpnIA
@ stub StrCSpnIA
@ stub StrCSpnIW
@ stub StrCSpnIW
...
@@ -698,3 +698,5 @@ debug_channels (shell)
...
@@ -698,3 +698,5 @@ debug_channels (shell)
#@ stdcall StrRetToStrW (ptr ptr ptr) StrRetToStrW
#@ stdcall StrRetToStrW (ptr ptr ptr) StrRetToStrW
@ stdcall SHRegGetPathA(long str str ptr long)SHRegGetPathA
@ stdcall SHRegGetPathA(long str str ptr long)SHRegGetPathA
@ stdcall SHRegGetPathW(long wstr wstr ptr long)SHRegGetPathW
@ stdcall SHRegGetPathW(long wstr wstr ptr long)SHRegGetPathW
@ stub SHCopyKeyW
@ stub SHAutoComplete
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