Rémi Bernon
daa120309e
server: Make sure pids/tids are multiples of four.
...
Street Fighter V unpacker relies on it when validating other processes
for its anti-debug checks, it uses (PID&0xfffffffc)>>2 as an array index
and then checks back indexes against PIDs, and terminates early if some
PIDs do not match.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-27 12:01:44 +02:00
Rémi Bernon
8bb684c63e
ntdll/tests: Test that ptids are multiples of four.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-27 12:01:40 +02:00
Paul Gofman
c6b501acdc
ntdll: Add semi-stub for RtlGetNativeSystemInformation().
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=40334
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-11 22:58:16 +01:00
Zebediah Figura
347b3b42fe
ntdll/tests: Remove a no longer reliable test.
...
On Windows 10 version 1607, a process called "Memory Compression" violates this
invariant.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-26 22:08:32 +01:00
Anastasios Simeonidis
0b6c3a4460
ntdll/tests: Add relationship tests for NtQuerySystemInformationEx.
...
Signed-off-by: Anastasios Simeonidis <symeonidis@csd.auth.gr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-02 22:02:56 +01:00
Sven Baars
e8f4251423
ntdll/tests: Fix some test failures on Windows 10.
...
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-28 21:58:32 +01:00
Vijay Kiran Kamuju
1aff1e6a37
ntdll: Fix the SYSTEM_MODULE struct field names.
...
Based on https://www.geoffchappell.com/studies/windows/km/ntoskrnl/api/rtl/ldrreloc/process_module_information.htm?ts=0,44
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-21 19:56:26 +02:00
Alex Henrie
34e15e5a1d
ntdll/tests: Add tests for NtPowerInformation(SystemBatteryState).
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-26 21:00:13 +02:00
Rémi Bernon
d1a7b681ea
ntdll: Change zero_bits parameter type to ULONG_PTR for NtMapViewOfSection and NtAllocateVirtualMemory.
...
It can be a pointer mask, eventually 64bit, and ULONG_PTR is what can be
found in several documentation of these functions.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-13 12:11:15 +02:00
Jacek Caban
c448550e74
ntoskrnl.exe/tests: Add more NtOpenThread tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-23 23:50:45 +02:00
Alexandre Julliard
1459a0105d
makefiles: Default to building test modules as PE.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-09 15:45:59 +02:00
Gijs Vermeulen
d2d52717af
ntdll: Validate len in NtQueryVirtualMemory.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45632
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-18 16:03:59 +01:00
Roger Zoellner
575c1c9066
ntdll: Relax checks for valid affinity mask in NtSetInformationThread().
...
Signed-off-by: Roger Zoellner <zoellner.roger@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-14 14:12:06 +02:00
Alex Henrie
e3fe1b0946
ntdll/tests: Handle case where process doesn't have its own DEP policy.
...
If neither MEM_EXECUTE_OPTION_ENABLE nor MEM_EXECUTE_OPTION_DISABLE is
set in the ProcessExecuteFlags, the process is using the system DEP
setting.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-14 12:48:14 +02:00
Alex Henrie
28e8e9a164
ntdll: Return BIOS info from NtQuerySystemInformation on Linux.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-12 12:57:53 +02:00
Alex Henrie
0bcee5eaf8
ntdll/tests: Add SystemFirmwareTableInformation tests.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-12 12:57:53 +02:00
Huw Davies
986d5a9958
ntdll/tests: Skip the map protect tests if we can't disable no-exec.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-09 13:35:04 +02:00
Michael Stefaniuc
3400da025e
ntdll/tests: Use the available ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-22 01:01:55 +02:00
Zebediah Figura
08cc41459b
ntdll/tests: Add a test for ProcessImageFileNameWin32.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-05 06:58:12 -06:00
Zebediah Figura
d96a5a0304
ntdll/tests: Simplify ProcessImageFileName test.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-05 06:58:09 -06:00
Michael Müller
ab3c0a3e0a
ntdll: Implement ProcessPriorityClass in NtQueryInformationProcess.
...
Allows Process Hacker to show process priority.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-01 19:25:56 +01:00
Michael Müller
556ba38dd1
ntdll: Fix error code when querying too large memory address.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-28 17:24:36 +01:00
Alistair Leslie-Hughes
3b05f552e2
ntdll/tests: Use standard wine_dbgstr_longlong.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-08 20:13:55 +09:00
Akihiro Sagawa
7c06d99e83
ntdll/tests: Add more tests if we have real VM counters.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-03 19:34:24 +02:00
Alex Henrie
146cf041d9
ntdll: Always fill PagefileUsage counter with a nonzero value on Linux.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-17 21:57:12 +02:00
Alex Henrie
d6dfe19794
ntdll/tests: Dump entire VM_COUNTERS structure.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-17 21:57:12 +02:00
Alex Henrie
19a79f4228
ntdll: Implement ProcessVmCounters for Linux for other processes.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-09 16:37:42 -05:00
Alex Henrie
bf7a97e5d3
ntdll: Implement ProcessVmCounters for Linux.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-21 20:52:38 +01:00
Huw Davies
92fe612acb
ntdll/tests: Skip broken SYSTEM_HANDLE_INFORMATION behaviour.
...
Vista and 2008 only copy the first handle's information into the
buffer.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-18 20:38:15 +09:00
Huw Davies
cf22192b28
ntdll/tests: Dump the handle table on failure.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-18 00:09:39 +09:00
Michael Müller
1311c8157b
ntdll: NtUnmapViewOfSection should succeed for all offsets within the mapped range.
...
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-19 22:03:21 +09:00
Michael Müller
5c50f65830
ntdll: Implement SystemRecommendedSharedDataAlignment class in NtQuerySystemInformation.
...
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-12 23:06:54 +09:00
Francois Gouget
93988c5039
ntdll/tests: Fix an infinite loop on platforms where NtQuerySystemInformationEx() is not implemented.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 21:30:50 +09:00
Andrew Eikum
a124064ce5
ntdll: Implement SystemLogicalProcessorInformationEx.
...
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 00:49:31 +09:00
Nikolay Sivov
ae1fe69e39
kernel32: Forward GetLogicalProcessorInformationEx() to ntdll.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 15:08:29 +01:00
Nikolay Sivov
114123370b
ntdll: Add NtQuerySystemInformationEx() stub.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 15:08:26 +01:00
Nikolay Sivov
c9c138f53f
ntdll/tests: Some tests for NtQuerySystemInformationEx().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 15:08:20 +01:00
Sebastian Lackner
08706ef357
server: Implement wineserver call for SystemHandleInformation.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-29 17:51:59 +01:00
Sebastian Lackner
e4e906c871
ntdll/tests: Add more tests for SystemHandleInformation.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:51:06 +01:00
Sebastian Lackner
1980834c7d
ntdll: ProcessDebugFlags should return debug_children flag instead of !debugger_present.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-21 18:14:43 +01:00
Sebastian Lackner
85df0c61e5
ntdll/tests: Add more tests for ProcessDebugFlags.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-10 16:26:03 +09:00
Sebastian Lackner
b1c8e0591c
ntdll/tests: Print the correct status code in ok() messages.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-16 17:09:24 +09:00
André Hentschel
c4cd981a61
ntdll/tests: Add ARM64 support for map protection tests.
2015-08-17 16:59:32 +09:00
Sebastian Lackner
905bf79337
server: Store correct entry point for first thread.
2015-07-30 11:37:15 +02:00
Sebastian Lackner
22f0611cf9
ntdll/tests: Add tests for ThreadQuerySetWin32StartAddress info class.
2015-07-29 21:44:03 +02:00
Qian Hong
d45bda3014
ntdll: Fixed buffer size checking for ProcessWow64Information on 64bit in NtQueryInformationProcess.
2015-01-15 11:39:42 +01:00
Frédéric Delanoy
0f2bed51bd
Assorted spelling fixes.
2014-02-10 15:47:29 +01:00
André Hentschel
51ec8af230
ntdll/tests: Add ARM support for map protection tests.
2013-12-10 12:20:36 +01:00
Frédéric Delanoy
5ba7f79bad
Assorted spelling fixes.
2013-12-03 19:41:53 +01:00
André Hentschel
a160a65317
ntdll: Enable compilation with -D__WINESRC__.
2013-11-06 12:01:53 +01:00
Frédéric Delanoy
81b181fe72
ntdll/tests: Use BOOL type where appropriate.
2013-10-29 10:22:15 +01:00
Detlef Riekenberg
3e162934d1
ntdll/tests: Fix SYSTEM_CACHE_INFORMATION failures.
2013-01-17 12:18:54 +01:00
André Hentschel
7f74df0224
ntdll/tests: Fix check for PAGE_READWRITE.
2012-12-03 18:24:39 +01:00
Akihiro Sagawa
bb4a31a8ed
ntdll: Calculate SystemProcessInformation's ReturnLength and return it.
2012-10-24 14:19:47 +02:00
Akihiro Sagawa
3fc4e88473
ntdll: Add ReturnLength test for NtQuerySystemInformation with SystemProcessInformation.
2012-10-24 14:19:35 +02:00
Alexandre Julliard
be2b45ce0a
ntdll/tests: Fix some test failures on Windows.
2012-10-12 11:47:01 +02:00
Michael Stefaniuc
dfd4191de4
ntdll/tests: Fix a memory leak (Smatch).
2012-09-17 12:05:48 +02:00
James Eder
fbd5a9aaff
ntdll/tests: Add test for ProcessorInformation case of NtPowerInformation.
2012-09-13 16:55:33 +02:00
Piotr Caban
67920ea6dd
ntdll/tests: Added basic NtQuerySystemInformation(SystemLogicalProcessorInformation) tests.
2012-09-04 16:15:55 +02:00
Gerald Pfeifer
80d078d071
ntdll: Omit unused typedef in test_query_process_basic.
2012-07-09 09:59:46 -04:00
Gerald Pfeifer
0016d8a2dd
ntdll: Omit unused typedef in test_query_process.
2012-06-21 08:36:38 +02:00
Gerald Pfeifer
43923decba
ntdll: Omit unused typedef in test_query_timeofday.
2012-06-05 19:58:12 +02:00
Detlef Riekenberg
0e235e5dc6
ntdll/tests: Add tests for NtGetCurrentProcessorNumber.
2012-05-21 11:33:40 +02:00
Dmitry Timoshkov
277259157b
ntdll: Change the virtual memory test to accept both READWRITE and WRITECOPY protections.
2011-11-23 14:14:17 +01:00
André Hentschel
94a9db6383
ntdll/tests: Run the execution test only on x86 platforms.
2011-09-08 11:13:36 +02:00
Steven Wallace
b3369e06c7
ntdll: implemented ProcessDebugFlags in NtQueryInformationProcess.
2011-03-30 15:10:01 +02:00
Austin English
3dd514cee7
ntdll/tests: Make sure return values are used (LLVM/Clang).
2011-02-08 13:42:14 -06:00
Marcus Meissner
da8c179d61
ntdll: Fixed file view mapping in regards to no-exec.
2010-11-15 13:20:09 +01:00
Marcus Meissner
2e7dc35786
ntdll: Check and fix PE header protections.
2010-11-08 18:12:57 +01:00
Alexandre Julliard
7a151d5e3e
ntdll/tests: Fix a test failure on 64-bit platforms.
2010-09-30 11:19:31 +02:00
Alexandre Julliard
e317b6068e
ntdll/tests: Fix the image protection test on Mac OS where the image limits are only approximative.
2010-09-15 11:28:54 -05:00
Alexandre Julliard
8e2e95ed7e
ntdll/tests: Add a test for the protection state of the read-write data section.
2010-08-26 18:05:55 +02:00
Marcus Meissner
2ca5513a62
ntdll: Set correct protection flags on sections in builtin DLLs.
2010-08-24 17:22:32 +02:00
Andrew Nguyen
d7956bab54
ntdll: Fix the status code for ProcessDebugObjectHandle class in NtQueryInformationProcess when the debugger is absent.
2010-07-28 16:28:19 +02:00
Alexandre Julliard
604f79dbdb
ntdll/tests: Fix a few test failures in the new exe protection tests.
2010-07-06 19:28:27 +02:00
Marcus Meissner
917089a954
ntdll: Add tests for NtQueryVirtualMemory.
2010-07-05 13:24:17 +02:00
Alexandre Julliard
b7b2a20aa2
ntdll/tests: Fix a number of test failures on Wow64.
2010-03-31 16:12:26 +02:00
Henri Verbeet
f0a5045254
ntdll: Improve support for the ProcessDebugPort info class in NtQueryInformationProcess().
2010-03-15 15:56:42 +01:00
Erich Hoover
fda39b207c
ntdll: Allow 'all processors' flag used in Vista and newer.
2010-02-22 11:57:08 +01:00
Andrew Nguyen
1cdf1cc07e
ntdll/tests: Report appropriate skips for information tests.
2010-01-18 14:33:18 +01:00
Andrew Nguyen
ab23f87bcc
ntdll/tests: Re-enable a commented virtual memory test.
2010-01-18 14:32:54 +01:00
Francois Gouget
7c5df85f51
ntdll/tests: Add a trailing '\n' to an ok() call.
2009-10-07 15:17:04 +02:00
Juan Lang
bfb4578356
server: A thread's affinity is restricted to the process affinity.
2009-10-01 11:33:33 +02:00
Juan Lang
24036fe13a
server: Setting a process's affinity sets all of its threads' affinities too.
2009-09-30 14:34:32 +02:00
Alexandre Julliard
2e8de49ee1
ntdll/tests: Retrieve the number of processors through GetSystemInfo.
2009-09-30 14:31:57 +02:00
Juan Lang
2e92c726aa
ntdll: Don't allow setting a zero thread affinity.
2009-09-29 13:29:43 +02:00
Juan Lang
c7b1423521
ntdll: Don't allow setting a zero process affinity.
2009-09-29 13:29:36 +02:00
Juan Lang
d9ce24e6cb
ntdll/tests: Add tests for process and thread affinity.
2009-09-29 13:29:28 +02:00
Alexandre Julliard
86e4830040
ntdll/tests: Make sure buffer alignment is correct.
2009-08-26 11:52:56 +02:00
Ge van Geldorp
cf5e2938a9
ntdll/tests: Pass properly aligned buffers.
2009-08-25 10:23:42 +02:00
Ge van Geldorp
4bc7a3eb92
ntdll/tests: Fix info tests on Win7.
2009-08-24 16:41:26 +02:00
Alexandre Julliard
b4a962bbb2
ntdll/tests: Add a missing \n.
2009-04-06 13:52:08 +02:00
Mikołaj Zalewski
9c9532265d
kernel32: Implement QueryFullProcessImageFileNameW.
2009-03-31 18:05:55 +02:00
Alexandre Julliard
6a548b1e9d
ntdll: Fix the various structures returned by NtQuerySystemInformation for 64-bit.
2009-01-03 14:55:32 +01:00
Aric Stewart
589d7eaa93
ntdll/tests: handle info behavior for vista and 2008 properly.
2008-10-23 15:16:32 +02:00
Aric Stewart
a226f6609f
ntdll: Implement SystemProcessorPerformanceInformation for Linux (/proc filesystems) and Mac OS X.
2008-10-20 13:56:58 +02:00
Alexandre Julliard
45a0f45cdd
ntdll/tests: Fix a few more failures in the info test.
2008-08-27 14:19:23 +02:00
Alexandre Julliard
f7a8436e92
ntdll/tests: Allow alternate results in the info test to make it pass on Vista.
2008-08-26 12:07:42 +02:00
Gerald Pfeifer
a44771c925
ntdll/tests: Use NTSTATUS instead of DWORD for status variables.
2008-07-16 20:09:59 +02:00
Huw Davies
a3d7155947
ntdll: Free the correct buffer in the test.
2008-06-20 11:19:19 +02:00