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
572e8036
Commit
572e8036
authored
Sep 04, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Duplicate shell32.ShellMessageBoxW implementation in shlwapi.ShellMessageBoxWrapW.
parent
6614028c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
20 deletions
+45
-20
shell32.spec
dlls/shell32/shell32.spec
+2
-2
shellord.c
dlls/shell32/shellord.c
+6
-0
ordinal.c
dlls/shlwapi/ordinal.c
+36
-17
shlwapi.spec
dlls/shlwapi/shlwapi.spec
+1
-1
No files found.
dlls/shell32/shell32.spec
View file @
572e8036
...
...
@@ -170,8 +170,8 @@
179 stdcall -noname SHGetNewLinkInfoA(str str ptr long long)
180 stdcall -noname SHGetNewLinkInfoW(wstr wstr ptr long long)
181 stdcall -noname RegisterShellHook(long long)
182 varargs -noname ShellMessageBoxW(long long
long
str long)
183 varargs -noname ShellMessageBoxA(long long
long
str long)
182 varargs -noname ShellMessageBoxW(long long
wstr w
str long)
183 varargs -noname ShellMessageBoxA(long long
str
str long)
184 stdcall -noname ArrangeWindows(long long long long long)
185 stub SHHandleDiskFull
186 stdcall -noname ILGetDisplayNameEx(ptr ptr ptr long)
...
...
dlls/shell32/shellord.c
View file @
572e8036
...
...
@@ -338,6 +338,12 @@ BOOL WINAPI RegisterShellHook(
* ShellMessageBoxW [SHELL32.182]
*
* See ShellMessageBoxA.
*
* NOTE:
* shlwapi.ShellMessageBoxWrapW is a duplicate of shell32.ShellMessageBoxW
* because we can't forward to it in the .spec file since it's exported by
* ordinal. If you change the implementation here please update the code in
* shlwapi as well.
*/
int
WINAPIV
ShellMessageBoxW
(
HINSTANCE
hInstance
,
...
...
dlls/shlwapi/ordinal.c
View file @
572e8036
...
...
@@ -4297,26 +4297,45 @@ DWORD WINAPI GetUIVersion(void)
/***********************************************************************
* ShellMessageBoxWrapW [SHLWAPI.388]
*
* loads a string resource for a module, displays the string in a
* message box and writes it into the logfile
* See shell32.ShellMessageBoxW
*
* PARAMS
* mod [I] the module containing the string resource
* unknown1 [I] FIXME
* uId [I] the id of the string resource
* title [I] the title of the message box
* unknown2 [I] FIXME
* filename [I] name of the logfile
*
* RETURNS
* FIXME
* NOTE:
* shlwapi.ShellMessageBoxWrapW is a duplicate of shell32.ShellMessageBoxW
* because we can't forward to it in the .spec file since it's exported by
* ordinal. If you change the implementation here please update the code in
* shell32 as well.
*/
BOOL
WINAPI
ShellMessageBoxWrapW
(
HMODULE
mod
,
DWORD
unknown1
,
UINT
uId
,
LPCWSTR
title
,
DWORD
unknown2
,
LPCWSTR
filename
)
INT
WINAPIV
ShellMessageBoxWrapW
(
HINSTANCE
hInstance
,
HWND
hWnd
,
LPCWSTR
lpText
,
LPCWSTR
lpCaption
,
UINT
uType
,
...
)
{
FIXME
(
"%p %x %d %s %x %s
\n
"
,
mod
,
unknown1
,
uId
,
debugstr_w
(
title
),
unknown2
,
debugstr_w
(
filename
));
return
TRUE
;
WCHAR
szText
[
100
],
szTitle
[
100
];
LPCWSTR
pszText
=
szText
,
pszTitle
=
szTitle
;
LPWSTR
pszTemp
;
va_list
args
;
int
ret
;
va_start
(
args
,
uType
);
TRACE
(
"(%p,%p,%p,%p,%08x)
\n
"
,
hInstance
,
hWnd
,
lpText
,
lpCaption
,
uType
);
if
(
IS_INTRESOURCE
(
lpCaption
))
LoadStringW
(
hInstance
,
LOWORD
(
lpCaption
),
szTitle
,
sizeof
(
szTitle
)
/
sizeof
(
szTitle
[
0
]));
else
pszTitle
=
lpCaption
;
if
(
IS_INTRESOURCE
(
lpText
))
LoadStringW
(
hInstance
,
LOWORD
(
lpText
),
szText
,
sizeof
(
szText
)
/
sizeof
(
szText
[
0
]));
else
pszText
=
lpText
;
FormatMessageW
(
FORMAT_MESSAGE_ALLOCATE_BUFFER
|
FORMAT_MESSAGE_FROM_STRING
,
pszText
,
0
,
0
,
(
LPWSTR
)
&
pszTemp
,
0
,
&
args
);
va_end
(
args
);
ret
=
MessageBoxW
(
hWnd
,
pszTemp
,
pszTitle
,
uType
);
LocalFree
((
HLOCAL
)
pszTemp
);
return
ret
;
}
HRESULT
WINAPI
IUnknown_QueryServiceExec
(
IUnknown
*
unk
,
REFIID
service
,
REFIID
clsid
,
...
...
dlls/shlwapi/shlwapi.spec
View file @
572e8036
...
...
@@ -385,7 +385,7 @@
385 stub -noname SHLoadRawAccelerators
386 stub -noname SHQueryRawAccelerator
387 stub -noname SHQueryRawAcceleratorMsg
388
stdcall -noname ShellMessageBoxWrapW(ptr long long wstr long wstr
)
388
varargs -noname ShellMessageBoxWrapW(long long wstr wstr long
)
389 stdcall -noname GetSaveFileNameWrapW(ptr)
390 stdcall -noname WNetRestoreConnectionWrapW(long wstr)
391 stdcall -noname WNetGetLastErrorWrapW(ptr ptr long ptr long)
...
...
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