Kartavya Vashishtha
1e34842799
kernelbase: Implement CopyFile2().
2024-02-20 10:42:57 +01:00
Eric Pouech
5efab11752
kernel32/tests: Check if thread is suspended in debugger attachment tests.
...
Looks like thread is suspended until DBG_CONTINUE is sent on thread
creation debug event.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-02-16 11:36:58 +01:00
Paul Gofman
0b441c4c8f
kernel32/tests: Add tests for critical section debug info presence.
2024-02-13 15:46:24 +01:00
Gabriel Ivăncescu
e8f4909ac3
kernelbase: Copy the read-only attribute from the source.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2024-02-12 23:02:03 +01:00
Eric Pouech
52b9f8a9fa
kernel32/tests: Remove todo scaffolding for CreateProcess() tests.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-02-12 23:02:02 +01:00
Eric Pouech
233074ded0
msvcrt: Don't reset invalid std handle in init.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-02-12 23:02:02 +01:00
Eric Pouech
4121a29b50
kernelbase: Don't use INVALID_HANDLE_VALUE as std handle in CreateProcess.
...
And don't infer detached console state from std handle values, but rely
on a NULL console handle.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-02-12 23:02:02 +01:00
Eric Pouech
eba8b54870
kernel32/tests: Add tests for CreateProcess with invalid handles.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-02-12 23:02:02 +01:00
Alexandre Julliard
4141a14443
kernel32: Don't export RtlRaiseException on ARM64.
2024-02-06 16:36:19 +01:00
Alexandre Julliard
9088506029
kernel32: Move Wow64Get/SetThreadContext implementation to kernelbase.
2024-02-06 16:36:19 +01:00
Eric Pouech
626b2f1898
server: Preserve handle flags when inheriting a std handle.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-02-06 11:39:58 +01:00
Eric Pouech
1c7e1f1fc6
server: Implement support for DUPLICATE_SAME_ATTRIBUTES in DuplicateHandle().
...
This flag is documented on MSDN in ZwDuplicateObject() but not in
DuplicateHandle(). Yet functional on both.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-02-06 11:39:58 +01:00
Eric Pouech
d68a0e650a
kernel32/tests: Test DUPLICATE_SAME_ATTRIBUTES flag in DuplicateHandle().
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-02-06 11:39:58 +01:00
Eric Pouech
da9210e038
kernel32/tests: Added tests about std handle flags inheritance.
...
Adding support for protect-from-close handle flag to CreateProcess
test infrastructure.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-02-06 11:35:47 +01:00
Alexandre Julliard
d0e02b67eb
kernel32/tests: Fix some test failures on ARM platforms.
2024-01-30 22:41:17 +01:00
Alexandre Julliard
d1836e226c
ntdll: Avoid calling DbgBreakPoint() in process_breakpoint().
2024-01-29 17:18:58 +01:00
Bernhard Übelacker
702aeb3acb
server: Allow VirtualQueryEx on "limited" handle.
...
A handle created with just PROCESS_QUERY_LIMITED_INFORMATION
should allow VirtualQueryEx / APC_VIRTUAL_QUERY.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56093
2024-01-18 18:08:48 +01:00
Hans Leidekker
77b3662517
kernel32/tests: Fix ProcessMachineTypeInfo tests.
2023-12-15 15:47:48 +01:00
Alexandre Julliard
bd693d6755
kernel32/tests: Don't bother checking for errors in cleanup path.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55578
2023-12-15 11:03:48 +01:00
Alexandre Julliard
24f7869e93
server: Enforce a mapping size limit instead of relying on the Unix file system.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55667
2023-12-15 10:11:22 +01:00
Alexandre Julliard
7cd2821d67
kernelbase: Don't validate calendar id for GetCalendarInfo(CAL_ITWODIGITYEARMAX).
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53845
2023-12-12 11:01:14 +01:00
Nikolay Sivov
f27b62206c
kernel32: Implement GetProcessInformation(ProcessMachineTypeInfo).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-12-08 22:31:38 +01:00
Billy Laws
bc7083716b
kernel32: Export RtlIsEcCode().
2023-12-07 21:58:17 +01:00
Eric Pouech
1f478ea370
ntdll: Don't inherit std console handles for non CUI child process.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-12-05 21:24:37 +01:00
Eric Pouech
a7c5e2413e
kernelbase: GetStartupInfoW: set std handle only when USESTDHANDLES is set.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-12-05 21:24:37 +01:00
Eric Pouech
3f814c42c0
kernelbase: No longer cache GetStartupInfoW() results.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-12-05 21:24:37 +01:00
Eric Pouech
76018fbbee
kernel32/tests: Add tests for GetStartupInfo(A|W).
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-12-05 21:24:37 +01:00
Eric Pouech
5545aef74e
kernel32/tests: Identify untouched fields returned from GetStartupInfo.
...
GetStartupInfoW() doesn't set all the fields.
So in CreateProcess() tests, always use a marker for STARTUP_INFO
initialization; make use of that marker to properly identify
the std handles gotten from GetStartupInfo.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-12-05 21:24:37 +01:00
Eric Pouech
0c61713bc3
kernelbase: Reset std handles gotten from GetStartupInfo().
...
The std handles gotten from GetStartupInfo are only set when
process was created with STARTF_USESTDHANDLES flag.
And yes, Ansi and Unicode versions reset the std
handles to a different value.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-30 23:12:54 +01:00
Eric Pouech
bf97f9490a
ntdll: Restrict cases for std handle inheritance in CreateProcess().
...
Only allow std handle inheritance when:
- either bInherit flag of CreateProcess is TRUE,
- or child process is in CUI subsystem and STARTF_USESTDHANDLES is no
used.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-30 23:12:54 +01:00
Eric Pouech
000f7faaa2
kernel32/tests: Add more tests about CreateProcess.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-30 23:12:54 +01:00
Eric Pouech
84079a62db
kernel32/tests: Enable CreateProcess() tests on 64bit compilation.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-30 23:12:54 +01:00
Eric Pouech
a55598b142
kernel32/tests: Introduce a new infrastructure for testing CreateProcess().
...
Move a couple of existing tests to this infrastructure.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-30 23:12:54 +01:00
Alexandre Julliard
d3722971ef
ntdll: Export __chkstk_arm64ec().
2023-11-14 22:25:01 +01:00
Yuxuan Shui
d1e02148b6
ntdll: Tweak the binary representation of SRWLOCK.
...
There are applications that uses SRWLOCK in an invalid way and then checks its binary
representation. Tweak our representation a bit so they are happy.
2023-11-10 00:03:44 +01:00
Jacek Caban
f7cf428f9f
kernel32/tests: Remove unused variable.
2023-11-09 23:00:40 +01:00
Dmitry Timoshkov
909204005b
ntdll: Add ACTCTX field limit checks to RtlCreateActivationContext().
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2023-11-08 17:24:16 +01:00
Dmitry Timoshkov
e8ce99792e
kernel32: Add ACTCTX field limit checks to CreateActCtxA().
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2023-11-08 17:24:16 +01:00
Dmitry Timoshkov
54479863ce
kernel32/tests: Add some tests for CreateActCtx() with different structure sizes.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2023-11-08 17:24:16 +01:00
Alexandre Julliard
7ccb5df0fc
makefiles: Always use the global SOURCES variable for .rc files.
2023-11-01 22:43:56 +01:00
Hans Leidekker
fd00d8e4cc
ntdll: Bump current build number to 19043 (Win10 2009).
...
Based on Proton commit 0fa76dd66a8.
2023-10-31 17:04:57 +01:00
Alexandre Julliard
fb4eca9a1e
ntdll: Export RtlCopyMemory on ARM platforms.
2023-10-19 18:19:30 +02:00
Alexandre Julliard
e57e885688
kernelbase: Export the extended context functions on all platforms.
2023-10-19 18:19:30 +02:00
Alexandre Julliard
f13a6dee5e
kernel32: Export the Ums functions on ARM64.
2023-10-19 18:19:30 +02:00
Alexandre Julliard
cf21c75bbf
ntdll: Simplify platform checks for exception handling functions.
...
And sync the corresponding forwards.
2023-10-19 18:19:30 +02:00
Alexandre Julliard
ec3de12825
ntdll: Relocate dynamic base modules when mapping them.
2023-10-05 18:49:44 +02:00
Alexandre Julliard
4847c1d8e4
server: Set the dynamically relocated flag when relocations are present.
2023-10-05 18:49:44 +02:00
Alexandre Julliard
b862cc032c
kernel32/tests: Delete the correct manifest file.
2023-10-03 17:44:50 +02:00
Alexandre Julliard
64654d617c
kernel32/tests: Add some dynamic base tests.
2023-10-03 13:32:44 +02:00
Alex Henrie
0d7cf84709
include: Move RTL functions that belong in ntddk.h from winternl.h to ntddk.h.
2023-09-27 11:17:47 +02:00