reactos/sdk/include/reactos
Hermès Bélusca-Maïto d8cc88ca80
[KERNEL32][BASESRV] Fix interoperability with Win2k3 regarding NLS section security. (#4828)
Partially revert some aspects of commits 5696e4ba4 and bf40c7a31.
(See PR #4340.)

In order for Win2k3 kernel32.dll to operate with our basesrv.dll (or our
kernel32.dll to operate with Win2k3 basesrv.dll), we need in particular
to have the CreateNlsSecurityDescriptor() helper to exactly take the
expected parameters. Namely, a pointer to a **user-allocated**
SECURITY_DESCRIPTOR buffer, its size (and an access mask).

The function expects its caller to provide all this, and the caller expects
the function to initialize the security descriptor buffer. Note that the
function does *NOT* allocate a new descriptor buffer to be returned!

Indeed, with the way it currently is in master, using Win2k3 kernel32
with our basesrv is now failing with the errors:
```
NLSAPI: Could NOT Create ACL - c0000023.
(subsystems/win/basesrv/nls.c:279) NLS: CreateNlsSecurityDescriptor FAILED!: c0000023
NLSAPI: Could NOT initialize Server - c0000023.
(dll/ntdll/ldr/ldrinit.c:867) LDR: DLL_PROCESS_ATTACH for dll "kernel32.dll" (InitRoutine: 77E40D95) failed
```
(and, if we ever attempted to increase the so-claimed "dummy parameter"
descriptor size in the basesrv call, we would end up with its stack
corrupted and a crash).
Conversely, using our kernel32 with Win2k3 basesrv, would end up with
basesrv receiving a wrongly-initialized descriptor that would not work
(the buffer not being initialized with the contents of a descriptor, but
instead receiving some address to a descriptor allocated somewhere else).
2022-11-01 02:34:04 +01:00
..
appcompat [APPHELP][APPHELP_APITEST] Implement SdbGetDatabaseInformation 2019-02-25 20:00:34 +01:00
arc
arm
chew
debug [SDK] Use FORCEINLINE instead of inline 2020-11-16 16:58:10 +01:00
dll [DESK] Pass the list of all display modes to extensions 2022-06-20 14:38:03 +03:00
drivers [SDK:REACTOS] Fix packing of GEN_ADDR structure, used in some ACPI tables 2022-06-08 07:58:27 +02:00
elf Add .keep guard files in order to restore lost but empty directories we had with SVN. 2017-10-04 10:28:36 +02:00
idl [SECLOGON][ADVAPI] CreateProcessWithLogonW: Return process information to the caller 2022-07-24 01:08:13 +02:00
kjk
libs [ZLIB] Update to v1.2.12. CORE-18339 2022-10-10 11:03:41 -04:00
mc [TRANSLATION] Big Romanian (ro-RO) translation update - part 1 (#4701) 2022-10-09 14:00:20 +03:00
services [SERVICES] On service start control message, send the service tag 2018-12-30 21:44:25 +01:00
subsys [KERNEL32][BASESRV] Fix interoperability with Win2k3 regarding NLS section security. (#4828) 2022-11-01 02:34:04 +01:00
ui [SDK:REACTOS] Move our ROS-specific header-only UI libraries into a "ui" sub-folder. (#4205) 2022-01-06 02:17:25 +01:00
wine [FREELDR][SDK] Sync copyright years with our banner and boot logo 2022-06-27 21:42:01 +03:00
winsock [FORMATTING][NTOS][HAL][DRIVERS][SDK] Fix trailing spaces 2021-06-11 15:33:08 +03:00
browseui_undoc.h [EXPLORER][BROWSEUI][SHELL32][NETSHELL] Fix wrong usage of CComPtr 2022-10-02 00:38:23 +02:00
buildno.h.cmake [SYSDM] Introduce KERNEL_VERSION_REVISION_RC and align system uptime string 2021-02-01 07:32:14 +01:00
comctl32_undoc.h [SDK][INCLUDE] Improve <comctl32_undoc.h> more 2020-02-13 11:26:40 +09:00
compat_undoc.h [LDR][APPHELP] Add a shim that disables manifest compatibility version parsing 2019-08-19 12:08:06 +02:00
compatguid_undoc.h [NTDLL] Check the process manifest at startup for a compatibility section. 2018-04-09 19:36:09 +02:00
debug.h [SDK] Silence a GCC warning on RtlAssert 2020-02-08 22:09:14 +01:00
exeformat.h
iernonce_undoc.h [IERNONCE] [RUNONCEEX] Add RunOnceEx functionality for ReactOS (#3926) 2021-09-29 11:30:32 +02:00
imm32_undoc.h [IMM32] Fix & Rename: s/Imm32LockIMCEx/Imm32InternalLockIMC/ (#4436) 2022-04-08 22:23:30 +09:00
kddll.h
kdros.h [SDK] Enforce callback type for KdRosRegisterCliCallback(), KdRosDeregisterCliCallback(). 2018-04-29 12:33:14 +02:00
manifest.xml
manifest_dll.rc [SDK] Fix copy-pasta, addendum to 7861960 by Mark Jansen. 2017-12-24 16:48:13 +01:00
manifest_exe.rc [SDK] Guard manifest_[dll|exe].rc against wrong usage. 2017-12-24 11:44:21 +01:00
manifest_hosted.rc [TELEPHON.CPL] Include winuser.h in the rc which is needed for manifest_hosted.rc 2018-03-01 10:05:54 +02:00
msgdump.h [SDK][INCLUDE] msgdump.h: Support RegisterWindowMessage 2021-03-18 18:41:03 +09:00
msvctarget.h [SDK] Allow ARM64 MSVC to complete configuration (#4045) 2021-10-22 18:52:32 +03:00
probe.h [NTOS:EX][SDK:REACTOS] Fix capitalization of "LangId" in the ProbeFor*** functions. 2022-02-08 15:56:34 +01:00
reactx.h
rosioctl.h [USETUP] Remove the PARTITION_EXT2 constant and use PARTITION_LINUX in favour since PARTITION_EXT2 is just an alias to PARTITION_LINUX 2018-11-07 23:16:29 +01:00
rossym.h [NTOS:KD][NTOS:KD64][NTOS:KDBG] Fix IRQL & spinlock use 2021-06-29 11:49:20 +02:00
shellutils.h [SHELL32] Show file / drive properties at the position where the mouse was. 2022-10-14 21:02:33 +02:00
shlguid_undoc.h [SDK][INCLUDE] Add CLSID_CopyToMenu and CLSID_MoveToMenu (#3032) 2020-08-11 17:26:05 +09:00
shlobj_undoc.h [SHELL32][SHELL32_APITEST] Implement SHCreateFileDataObject 2021-12-31 21:27:30 +01:00
shlwapi_undoc.h [BROWSEUI][INCLUDE] Localize 'Address' on CBandSiteMenu (#4767) 2022-10-11 06:15:28 +09:00
srmp.h
stubs.h [SPEC2DEF] Fix compilation of generated stub C files with int64 parameters 2019-01-08 18:58:56 +01:00
svc.h [SDK:REACTOS][SVCHOST] Add/complete all missing definitions in the SVCHOST global header. (#4295) 2022-04-01 04:55:31 +02:00
tcpip_undoc.h
undocelfapi.h [SDK] Add a header for the user-mode NT EventLog API. Addendum to commit dca4fd46 (SVN r71384). 2018-03-25 00:28:04 +01:00
undocgdi.h [FONTEXT] Initial implementation of CFontExt::DoGetFontTitle (#3127) 2020-09-12 09:40:48 +09:00
undocmpr.h [WINLOGON][MPR][SDK] WNetClearConnections: Fix function parameter type (#3480) 2021-04-18 21:58:44 +03:00
undocshell.h [SHELL32] Implement PathResolveW function (#3762) 2021-06-28 07:53:26 +09:00
undocuser.h [NTUSER][USER32][INCLUDE] s/SETIMEHOTKEY_DELETEALL/SETIMEHOTKEY_INITIALIZE/ 2022-10-19 12:15:11 +09:00
uxundoc.h [FORMATTING][NTOS][HAL][DRIVERS][SDK] Fix trailing spaces 2021-06-11 15:33:08 +03:00
verifier.h [SDK] Add initial verifier header. 2018-05-12 13:34:36 +02:00
version.cmake 🎊 🍾 🥳 Happy New Year 2022 to the ReactOS Community! 🎆 ⚛️ ☢️ 2022-01-01 00:00:00 +01:00
version.h.cmake
version.rc [FREELDR][SDK] Sync copyright years with our banner and boot logo 2022-06-27 21:42:01 +03:00
windbgkd.h [REACTOS] Finally get some ARM64 applications building (#4517) 2022-05-25 17:06:32 +03:00
windns_undoc.h [DNSAPI][DNSRSLVR] Implement DnsGetCacheDataTable() 2019-12-22 11:21:04 +01:00
winxx.h [SDK][INCLUDE] Update winxx.h and msgdump.h 2019-11-21 18:18:47 +09:00
wmiioctl.h