reactos/sdk/include
Hermès Bélusca-Maïto 14599b0a37
[SHELL32][SHLWAPI] Forward shell32.ShellMessageBoxW directly to shlwapi.ShellMessageBoxWrapW. (#3179)
This makes ShellMessageBoxW use the correct implementation where the
text buffer size is dynamic, instead of having a too small hardcoded
size.

Fixes CORE-17271.
See also PR #3172 by Kyle Katarn, supplemented with some ideas from
Mark Jansen.

However we cannot straightforwardly implement ShellMessageBoxA around
ShellMessageBoxW, by converting some parameters from ANSI to UNICODE,
because there may be some variadic ANSI strings, associated with '%s'
printf-like formatters inside the format string, that would also need
to be converted; however there is no way for us to find these and perform
the conversion ourselves.
Therefore, we re-implement ShellMessageBoxA by doing a copy-paste ANSI
adaptation of the shlwapi.ShellMessageBoxWrapW function.

Note that, on Vista+ onwards, shlwapi implements both ShellMessageBoxA/W,
and shell32 directly forwards these exports to shlwapi, thus avoiding
these workarounds.

[PSDK] Explicily use WINAPIV for the variadic ShellMessageBoxA/W functions.

[INCLUDE/REACTOS] Add ShellMessageBoxWrapW in shlwapi_undoc.h .
2020-09-13 22:44:58 +02:00
..
asm [ASM] Fix boot with VS 16.7.3 / MSVC 19.27 2020-09-12 15:01:04 +02:00
c++
crt [CRT] Use builtin va_args macros for clang. CORE-17227 2020-08-30 09:09:04 +02:00
ddk [DDK] Import missing files required for newer storage class drivers 2020-08-28 17:06:20 +03:00
dxsdk [DXSDK] Sync axextend.idl with Wine Staging 3.3 (#2421) 2020-04-03 23:58:54 +02:00
GL
host
ndk [SDK][NDK][PSTYPES] Fix regressions CORE-17247 & CORE-17248 2020-09-07 20:32:00 +02:00
psdk [SHELL32][SHLWAPI] Forward shell32.ShellMessageBoxW directly to shlwapi.ShellMessageBoxWrapW. (#3179) 2020-09-13 22:44:58 +02:00
reactos [SHELL32][SHLWAPI] Forward shell32.ShellMessageBoxW directly to shlwapi.ShellMessageBoxWrapW. (#3179) 2020-09-13 22:44:58 +02:00
xdk [NTOSKRNL_VISTA][XDK] Implement IoSetMasterIrpStatus 2020-08-29 05:44:34 +03:00