Alexandre Julliard
b20cbd0d57
ntdll: Return the session id in NtQuerySystemInformation(SystemProcessInformation).
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:31 +02:00
Alexandre Julliard
bf4105b731
ntdll: Implement NtQueryInformationProcess(ProcessSessionInformation).
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:31 +02:00
Alexandre Julliard
ad93413c71
server: Store session id in the process and return it at process init time.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:31 +02:00
Huw Davies
f5238be330
nsiproxy: Implement NDIS ifinfo get_parameter for a few parameters.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:31 +02:00
Huw Davies
794ecdc524
nsi: Implement NsiGetParameterEx().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:31 +02:00
Huw Davies
8f7f4f1327
nsiproxy: Introduce IOCTL_NSIPROXY_WINE_GET_PARAMETER.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:31 +02:00
Huw Davies
b0ceee3476
nsiproxy: Implement NDIS ifinfo get_all_parameters.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:31 +02:00
Huw Davies
0f25a94672
nsi: Implement NsiGetAllParametersEx().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:31 +02:00
Huw Davies
25a582cf32
nsiproxy: Introduce IOCTL_NSIPROXY_WINE_GET_ALL_PARAMETERS.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:31 +02:00
Zebediah Figura
151370c478
ntdll/tests: Add more tests for deleted keys.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:31 +02:00
Zebediah Figura
089b2528c2
server: Return STATUS_KEY_DELETED when trying to retrieve the full name of a deleted key.
...
This fixes a server crash that can be triggered by deleting a key and then
trying to retrieve its name. In that case key->parent is NULL.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:31 +02:00
Zebediah Figura
e759da260e
server: Use a separate request to retrieve the object name.
...
A deleted key returns STATUS_KEY_DELETED when ObjectNameInformation is
requested, but succeeds when ObjectBasicInformation is requested.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:31 +02:00
Jacek Caban
e82332f2b2
gdi32: Initialize GdiSharedHandleTable in PEB.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:31 +02:00
Jacek Caban
7f819ea4e9
gdi32: Use handle layout compatible with GdiSharedHandleTable to store handles.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:31 +02:00
Jacek Caban
0cfbeb5520
include: Add ntgdi.h file.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:31 +02:00
Jacek Caban
d02eb26413
gdi32: Move more fields from gdi_handle_entry to gdi_obj_header.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:31 +02:00
Jacek Caban
a96fcf21b0
gdi32: Introduce gdi_obj_header and use it to store gdi_obj_funcs.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:31 +02:00
Alexandre Julliard
02268cb290
kernel32: Fix the DLL check in GetBinaryTypeW().
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51375
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:29 +02:00
Alexandre Julliard
11d6c52f32
ntdll: Use the CPU area to get/set the Wow64 context on x86-64.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 12:46:00 +02:00
Alexandre Julliard
4acecd8619
ntdll: Initialize the Wow64 context on x86-64.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 12:46:00 +02:00
Alexandre Julliard
bedfb31d7c
ntdll: Add a helper function to retrieve the CPU area context on the Unix side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 12:46:00 +02:00
Alexandre Julliard
8794879335
ntdll: Clear the 32-bit TLS for ZeroTlsCell in Wow64 mode.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 10:32:24 +02:00
Alexandre Julliard
3469ebf90e
ntdll: Implement RtlWow64GetThreadSelectorEntry().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 10:32:24 +02:00
Alex Henrie
dbabe2fa49
tbs: Add Tbsi_Context_Create stub.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51335
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 09:12:46 +02:00
Alex Henrie
91c42ffe46
tbs: Add stub dll.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51335
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 08:42:49 +02:00
Alex Henrie
3ffb15eb34
include: Add TBS_E_* to winerror.h.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 08:42:49 +02:00
Alex Henrie
295c657de7
include: Add tbs.h.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 08:42:49 +02:00
Zebediah Figura
96766e6794
ws2_32: Move the setsockopt(IP_ADD_MEMBERSHIP) implementation to ntdll.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 08:37:50 +02:00
Zebediah Figura
51c19a9d97
ws2_32: Explicitly return WSAENOPROTOOPT for IP membership options in getsockopt().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 08:37:48 +02:00
Zebediah Figura
b9bf00605d
ws2_32/tests: Add tests for options which can only be set.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 08:37:45 +02:00
Zebediah Figura
1ccab719ee
ws2_32: Use ws_protocol_info() in getsockopt(SO_LINGER).
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 08:37:42 +02:00
Zebediah Figura
b58ca92fa5
ws2_32: Reimplement getsockopt(SO_TYPE) on top of ws_protocol_info().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 08:37:36 +02:00
Roman Pišl
0ec555e58e
ntdll: Don't pretend that the whole address space is reserved on non-i386.
...
This is analogous to 61dcca5dbf
.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50735
Signed-off-by: Roman Pišl <rpisl@seznam.cz>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 20:01:20 +02:00
Rémi Bernon
9a56ba0336
hidclass.sys: Disable the keyboard device interface on removal.
...
Instead of enabling it.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 20:01:20 +02:00
Rémi Bernon
ab8f8258a5
winebus.sys: Add missing keyboard free_device callback.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 20:01:20 +02:00
Rémi Bernon
2862ff6ba7
ntoskrnl.exe: Implement Ke(Initialize|Insert|Remove)DeviceQueue.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 20:01:20 +02:00
Rémi Bernon
0f48202335
winebus.sys: Handle IRP_MN_SURPRISE_REMOVAL and set removed flag.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 20:01:20 +02:00
Rémi Bernon
25155186c6
winebus.sys: Introduce new remove_pending_irps helper.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 20:01:20 +02:00
Rémi Bernon
19d1375bce
ntoskrnl.exe/tests: Add some pending / remove tests.
...
This shows that removing a device should send IRP_MN_SURPRISE_REMOVAL
only, and that it's still possible to use DeviceIoControl on already
opened handles.
IRP_MN_REMOVE_DEVICE should only be sent when all then opened handles
are closed.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 20:01:20 +02:00
Rémi Bernon
bd26083162
include: Declare KeInitializeSpinLock as static FORCEINLINE.
...
And internally rename the ntoskrnl.exe export.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 20:01:20 +02:00
Huw Davies
f579cea53b
nsi: Implement NsiAllocateAndGetTable() and NsiFreeTable().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 20:01:20 +02:00
Huw Davies
2fc0872cac
nsiproxy: Implement NDIS ifinfo enumerate_all.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 20:01:20 +02:00
Huw Davies
ed79dd2125
iphlpapi: For unknown interface types set the physical address length to zero.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 20:01:19 +02:00
Huw Davies
c8bfc8d64f
iphlpapi: Fill out a few more MIB_IF_ROW2 entries.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 20:01:19 +02:00
Alexandre Julliard
9a7bf63bb2
configure: Disable nsiproxy.sys for the Windows build.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 20:01:19 +02:00
Zebediah Figura
4cca8b67d0
server: Create linked tokens as impersonation tokens.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51347
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 18:46:16 +02:00
Zebediah Figura
2cbed06609
advapi32/tests: Test the type and impersonation level of a linked token.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 18:46:16 +02:00
Alexandre Julliard
17716bc7f3
ntdll: Implement RtlWow64GetCurrentCpuArea().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 18:46:16 +02:00
Alexandre Julliard
c9d23a15ce
ntdll/tests: Add tests for RtlWow64GetCurrentCpuArea().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 18:46:16 +02:00
Alexandre Julliard
7700467a38
ntdll/tests: Add tests for 64-bit modules in Wow64 mode.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 18:46:16 +02:00