reactos/dll/win32
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
..
acledit [ACLEDIT][MSIMG32][HIDCLASS] Fix DLL-main function argument type in spec file. 2022-10-06 16:16:40 +02:00
aclui [TRANSLATION] Review & update Simplified Chinese (zh-CN) translation (#3933) 2022-03-31 20:30:52 +03:00
activeds
actxprxy
advapi32 [SECLOGON][ADVAPI] CreateProcessWithLogonW: Return process information to the caller 2022-07-24 01:08:13 +02:00
advapi32_vista
advpack
atl
atl80
atl100
authz
avicap32
avifil32
batt [BATT] Add the composite battery installer 2022-04-25 23:33:51 +02:00
bcrypt
beepmidi
browseui [BROWSEUI] Fix CAutoComplete use after free 2022-10-27 23:45:18 +02:00
bthci
cabinet
cards
cfgmgr32
clusapi
comcat
comctl32 [COMCTL32] Don't hardcode dwCaretWidth parameter while calling CreateCaret 2022-10-12 22:12:19 +03:00
comdlg32 [TRANSLATION] Improve Simplified Chinese (zh-CN) translation (#4513) 2022-05-20 15:38:24 +03:00
compstui
credui
crtdll
crypt32 [TRANSLATION] Update Bulgarian translation (#4429) 2022-09-30 18:08:13 +02:00
cryptdlg
cryptdll
cryptnet
cryptui [TRANSLATION] Update Bulgarian translation (#4429) 2022-09-30 18:08:13 +02:00
dbgeng
dbghelp [DBGHELP] Add ARM64 definitions into compat.h (#4810) 2022-10-27 18:14:10 +03:00
dciman32
devmgr [DEVMGR] Update Romanian (ro-RO) translation (#4699) 2022-09-25 11:44:41 +03:00
dnsapi [DNSAPI] DNSRSLVR_HANDLE_bind(): Demote 1 DPRINT1() (#4733) 2022-09-28 22:38:35 +03:00
esent
faultrep
fltlib
fmifs
fontsub
framedyn
fusion
gdiplus
getuname [TRANSLATION] More Russian (ru-RU) translation fixes 2022-09-29 12:00:04 +03:00
hhctrl.ocx [HHCTRL.OCX] Fix toolbar icons order 2022-10-20 21:20:36 +03:00
hid
hlink
hnetcfg
httpapi
iccvid
icmp
ieframe [TRANSLATION] Improve Simplified Chinese (zh-CN) translation (#4513) 2022-05-20 15:38:24 +03:00
iernonce [REACTOS] Various Russian (ru-RU) translation fixes (#4696) 2022-09-15 18:46:03 +03:00
imaadp32.acm
imagehlp
imm32 [IMM32] Add reasoning for tracing (#4807) 2022-10-26 12:01:33 +09:00
inetcomm
inetmib1
initpki
inseng
iologmsg
iphlpapi [REACTOS] Add '\n' to debug logs 2022-05-04 03:28:38 +03:00
iprtprio
itircl
itss
jscript [TRANSLATION] Big Romanian (ro-RO) translation update - part 1 (#4701) 2022-10-09 14:00:20 +03:00
jsproxy
kernel32 [KERNEL32][BASESRV] Fix interoperability with Win2k3 regarding NLS section security. (#4828) 2022-11-01 02:34:04 +01:00
loadperf
lpk [IMM32][LPK] Remove msvcrt dependency; fix entrypoint. (#4759) 2022-10-06 15:52:20 +02:00
lsasrv [LSASRV] Set up a security descriptor for the token object 2022-05-06 10:09:36 +02:00
lz32
mapi32
mciavi32
mcicda
mciqtz32
mciseq
mciwave
mgmtapi
mlang
mmdevapi
mmdrv
modemui [TRANSLATION] Review & update Simplified Chinese (zh-CN) translation (#3933) 2022-03-31 20:30:52 +03:00
mpr
mprapi
msacm32
msacm32.drv
msadp32.acm
msafd [REACTOS] Add '\n' to debug logs 2022-05-04 03:28:38 +03:00
mscat32
mscms
mscoree
msctf
msftedit
msg711.acm
msgina [TRANSLATION] Big Romanian (ro-RO) translation update - part 1 (#4701) 2022-10-09 14:00:20 +03:00
msgsm32.acm
mshtml [MSHTML] Global variable compatibility update for gcc 10. 2022-04-26 03:38:38 +03:00
mshtml.tlb
msi [MSI] Add jira ticket to debug logging 2022-10-26 20:19:31 +02:00
msimg32 [ACLEDIT][MSIMG32][HIDCLASS] Fix DLL-main function argument type in spec file. 2022-10-06 16:16:40 +02:00
msimtf
msisip
msisys.ocx
msnet32
mspatcha
msports [TRANSLATION] Review & update Simplified Chinese (zh-CN) translation (#3933) 2022-03-31 20:30:52 +03:00
msrle32
mssign32
mssip32
mstask
msv1_0 [REACTOS] Add '\n' to debug logs 2022-05-04 03:28:38 +03:00
msvcrt [MSVCRT] Enable _wfindfirst64 and _wfindnext64 in msvcrt.spec (#4464) 2022-04-23 19:19:09 +02:00
msvcrt20
msvcrt40
msvfw32
msvidc32
mswsock [SDK:REACTOS][SVCHOST] Add/complete all missing definitions in the SVCHOST global header. (#4295) 2022-04-01 04:55:31 +02:00
msxml
msxml2
msxml3
msxml3r
msxml4
msxml6
mycomput [TRANSLATION] Update Hong Kong Chinese (zh-HK) translation - Part 2 (#4347) 2022-03-31 17:10:21 +03:00
nddeapi
netapi32 [NETAPI32] NetSessionEnum: UncClientName and username are optional 2022-05-07 16:54:04 +02:00
netcfgx [TRANSLATION] Improve Portuguese (pt-PT) translation (#4758) 2022-10-06 22:48:38 +03:00
netevent
netid [TRANSLATION] Improve Simplified Chinese (zh-CN) translation (#4513) 2022-05-20 15:38:24 +03:00
netmsg
newdev [NEWDEV] Improve Japanese translation (ja-JP) 2022-09-05 11:41:25 +09:00
npptools
ntdsapi
ntlanman
ntmarta
objsel
odbc32
odbccp32
ole32
oleacc
oleaut32
olecli32
oledlg
olepro32
olesvr32
olethk32
pdh
pidgen
powrprof [POWRPROF] Create a security descriptor for power management semaphore 2022-05-06 10:09:51 +02:00
profmap [REACTOS] Update email in all my copyrights (#4415) 2022-03-31 01:53:30 +02:00
propsys
psapi
pstorec
qmgr
qmgrprxy
query
rasadhlp
rasapi32
rasdlg [RASDLG] Fix typos in Polish (pl-PL) translation (#4812) 2022-10-26 16:22:05 +03:00
rasman
regapi
resutils
riched20
riched32
rpcrt4 [RPCRT4] Set up a security descriptor for RPC named pipes 2022-05-06 10:09:51 +02:00
rsabase
rsaenh
samlib [REACTOS] Add '\n' to debug logs 2022-05-04 03:28:38 +03:00
samsrv [TRANSLATION] Improve Simplified Chinese (zh-CN) translation (#4513) 2022-05-20 15:38:24 +03:00
sccbase
schannel
scrrun
secur32 [SECUR32] Do not declare global variables in a header 2022-04-26 03:38:38 +03:00
security
sensapi
serialui [TRANSLATION] Review & update Simplified Chinese (zh-CN) translation (#3933) 2022-03-31 20:30:52 +03:00
setupapi [TRANSLATION] Improve Simplified Chinese (zh-CN) translation (#4513) 2022-05-20 15:38:24 +03:00
sfc
sfc_os
sfcfiles
shdoclc [TRANSLATION] Improve Simplified Chinese (zh-CN) translation (#4513) 2022-05-20 15:38:24 +03:00
shdocvw
shell32 [SHELL32] Fix empty 'Send to' menu 2022-10-26 20:18:40 +02:00
shfolder
shimgvw [SHIMGVW] Improve Japanese translation (ja-JP) 2022-09-24 12:33:22 +09:00
shlwapi [TRANSLATION] French translation update (#4638) 2022-09-03 23:12:29 +02:00
slbcsp
smdll
sndblst
snmpapi
softpub
srclient
stdole2.tlb
stdole32.tlb
sti
storprop
streamci
sxs
syssetup [SYSSETUP] Add support for shortcut arguments 2022-10-19 19:36:26 +02:00
t2embed
tapi32
tapiui [TRANSLATION] Review & update Simplified Chinese (zh-CN) translation (#3933) 2022-03-31 20:30:52 +03:00
themeui [TRANSLATION] Review & update Simplified Chinese (zh-CN) translation (#3933) 2022-03-31 20:30:52 +03:00
traffic
twain_32 [TWAIN_32] Global variable compatibility update for gcc 10. 2022-04-26 03:38:38 +03:00
ubtrfs [BTRFS][UBTRFS][SHELLBTRFS] Upgrade to 1.8.1 (#4729) 2022-09-28 18:08:10 +02:00
ucdfs
uext2
ufat
ufatx
untfs
updspapi
url
urlmon
userenv [TRANSLATION] Improve Simplified Chinese (zh-CN) translation (#4513) 2022-05-20 15:38:24 +03:00
usp10
uxtheme
vbscript
verifier
version
vssapi
wbemdisp
wbemprox [WBEMPROX] Global variable compatibility update for gcc 10. 2022-04-26 03:38:38 +03:00
wdmaud.drv
windowscodecs
windowscodecsext
winemp3.acm
winfax
wing32
winhttp [WINHTTP] Fix 1 MSVC x86 warning LNK4199 (#4414) CORE-18104 2022-04-07 00:36:52 +02:00
wininet [WININET] Update Polish (pl-PL) translation (#4811) 2022-10-26 18:30:39 +03:00
winmm [MIDIMAP] MIDIMAP_modMessage(): Fix a MSVC amd64 C4133 warning 2022-04-11 19:20:13 +03:00
winscard
winsta
wintrust
wlanapi
wldap32
wlnotify
wmi
wmiutils
wmvcore
ws2_32
ws2help
wshirda
wshom.ocx
wshtcpip
wsock32
wtsapi32
wuapi
xinput1_1
xinput1_2
xinput1_3
xinput9_1_0
xmllite
xolehlp
CMakeLists.txt