Daniel Lehman
452b59bb4f
advapi32/tests: Add some more EventLog tests.
2024-01-31 11:31:51 +01:00
Daniel Lehman
8c91e484cb
advapi32/tests: Reduce reallocations.
2024-01-31 11:31:51 +01:00
Bernhard Übelacker
26e383c8df
server: Avoid unloading of HKU .Default registry branch.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55000
2024-01-25 20:30:53 +01:00
Alex Henrie
2b323dbad7
advapi32: Add TreeSetNamedSecurityInfoW stub.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56055
2024-01-18 18:08:48 +01:00
Sven Baars
a1adaaca27
advapi32/tests: Skip WoW64 tests on 32-bit in test_reg_create_key.
...
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=54613
2024-01-17 11:07:00 +01:00
Sven Baars
7565d61403
advapi32/tests: Introduce a new has_wow64 helper.
2024-01-17 11:07:00 +01:00
Francois Gouget
96da5a8a35
advapi32/tests: Fix a service stop race condition.
...
If some Windows services stop while testing EnumServicesStatusW()'s
resume handle support, one possibility is that the still running
services all fit in the specified buffer, invalidating the test so
there is a retry in place.
But in some cases the second call just returns fewer tests than
expected. So retry in that case too.
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=53460
2023-11-21 22:46:57 +01:00
Alexandre Julliard
9db1bbf251
include: Use proper dllimports for eventlog functions.
2023-11-06 12:01:22 +01:00
Hans Leidekker
03a2d4851b
advapi32/tests: Get rid of an unreliable eventlog test.
...
It can take a while before a new eventlog file is created on Windows. Rather than
waiting for it I chose to remove this test since it seems doubtful that any application
will need to access the file directly.
2023-11-02 16:50:54 +01:00
Alexandre Julliard
7ccb5df0fc
makefiles: Always use the global SOURCES variable for .rc files.
2023-11-01 22:43:56 +01:00
Sven Baars
2821016247
advapi32/tests: Fix a typo (Coverity).
2023-10-30 17:18:59 +01:00
Daniel Lehman
bb88ca7056
advapi32/tests: Add ReadEventLogW tests for direction.
2023-10-27 11:33:41 -05:00
Hans Leidekker
2ad2ad035d
advapi32/tests: Skip WoW64 registry tests on 32-bit.
2023-10-26 16:03:30 -05:00
Hans Leidekker
362f953748
advapi32/tests: Get rid of workarounds for old Windows versions.
2023-10-26 16:03:30 -05:00
Zebediah Figura
245bdef5b1
advapi32: Implement GetSecurityInfo(SE_WINDOW_OBJECT).
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55763
2023-10-16 18:53:48 +02:00
Zebediah Figura
1a1c1d07ee
advapi32: Respect object type in SetSecurityInfo().
...
Do not try to treat types which are not kernel handles as kernel handles.
2023-10-16 18:53:48 +02:00
Zebediah Figura
b4926e2724
advapi32: Respect object type in GetSecurityInfo().
...
Do not try to treat types which are not kernel handles as kernel handles.
2023-10-16 18:53:48 +02:00
Zebediah Figura
398025083d
advapi32/tests: Add more tests for GetSecurityInfo().
2023-10-16 18:53:48 +02:00
Zebediah Figura
c05973d077
advapi32: Fix rewinding the last path segment in SetSecurityInfo().
...
In particular, handle the case where an object has no name.
In theory, this should not happen for regular files, but SetSecurityInfo() is
almost certainly not supposed to care about that [i.e. this code probably
belongs in the server, at the very least]. However, fixing that will require
much more work.
While we're at it, rewrite the code to be a little more idiomatic about its
intent.
2023-10-16 18:53:48 +02:00
Zebediah Figura
3ecedb7e14
advapi32/tests: Use StringFromGUID2().
2023-10-16 18:53:48 +02:00
Zebediah Figura
46dfbf89d2
advapi32: GetNamedSecurityInfo() takes a const name argument.
...
At least in the Windows 10 SDK.
2023-10-16 18:53:48 +02:00
Francois Gouget
0e44c658b6
advapi32/tests: Don't check the content of the buffer if ReadEventLog() fails.
2023-10-13 18:26:10 +02:00
Francois Gouget
b34ec64537
advapi32/tests: Avoid unneeded reallocations of the ReadEventLog() buffer.
...
Also we don't care about the content of the buffer so using
HeapRealloc() makes no sense.
2023-10-13 18:26:09 +02:00
Francois Gouget
e0c3530a74
advapi32/tests: Add the read_write info to the failures context.
...
Otherwise it's impossible to know which iteration failed.
2023-10-13 18:26:07 +02:00
Francois Gouget
e6b5afcbd8
advapi32/tests: Better identify OpenEventLogA() failures.
2023-10-13 18:26:07 +02:00
Daniel Lehman
9373f330e5
advapi32/tests: Skip ReadEventLog on failure to open System log.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55731
2023-10-12 10:21:56 +02:00
Daniel Lehman
d2a606bc92
advapi32/tests: Add ReadEventLogA tests for EventlogStarted.
2023-10-09 11:35:08 +02:00
Daniel Lehman
428a1219fd
advapi32/tests: Add ReadEventLogW tests for EventLogStarted.
2023-10-05 18:49:44 +02:00
Dmitry Timoshkov
d7c5797bee
wevtsvc: Remove duplicate dwControlsAccepted initialization.
...
dwControlsAccepted is initialized a few lines earlier.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2023-09-08 17:47:32 +02:00
Alex Henrie
7abcc31298
advapi32: Use CRT allocation functions.
2023-08-17 10:29:30 +02:00
Vitaly Lipatov
d5a983ebec
advapi32: Print name for POLICY_INFORMATION_CLASS argument.
2023-08-16 15:31:54 +02:00
Alistair Leslie-Hughes
9fd2c50434
advapi32: Remove DECLSPEC_HIDDEN usage.
2023-07-07 12:20:53 +02:00
Alexandre Julliard
c8c22e1348
advapi32/tests: Avoid sizeof() in traces.
2023-07-06 20:54:30 +02:00
Zebediah Figura
bf45b87a3a
advapi32/tests: Add more tests for token duplication.
2023-05-08 20:02:28 +02:00
Nikolay Sivov
a63612045d
ntdll/tests: Add some RtlValidSecurityDescriptor() tests.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-05-03 16:48:45 +02:00
Francois Gouget
4abd7af2e4
advapi32/tests: Make the services resume handle traces more informative.
2023-04-13 18:00:25 +02:00
Zebediah Figura
95258873a5
advapi32: Print ReportEvent() messages one line at a time.
...
.NET Framework passes multiline backtraces to ReportEvent(), which get cut off when passed to debugstr_w().
2023-04-06 14:32:32 +02:00
Sven Baars
da0ec7fbbd
kernelbase: Recursively obtain the Wow6432Node parent.
2023-03-28 20:40:09 +02:00
Sven Baars
63c6b89314
kernelbase: Add support for shared registry keys.
2023-03-28 20:40:09 +02:00
Sven Baars
3f82f6ff59
kernelbase: Use open_key() to obtain any existing Wow6432node in create_key().
2023-03-22 20:03:52 +01:00
Sven Baars
8b327eee5e
advapi32/tests: Copy Software\Classes tests from ntdll.
2023-03-22 20:03:51 +01:00
Francois Gouget
2078afb928
advapi32/tests: Skip some tests if the EventLog service crashed.
...
advapi32:eventlog crashes the EventLog service in some Windows
versions so defend against that condition.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53461
2023-03-17 19:32:00 +01:00
Francois Gouget
42bd3bb79a
advapi32/tests: Enumerate the services using the Unicode API.
...
The ANSI one is broken in some UTF-8 locales which prevents most of the
tests from running. So use the Unicode API for most tests and just
confirm that it is consistent with the ANSI one instead of doing the
reverse.
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=52895
2023-03-17 19:02:10 +01:00
Francois Gouget
81e33a3484
advapi32/tests: Take into account service start / stop race conditions.
...
Services sometimes start or stop between two EnumServicesStatus()
calls. Fortunately this is rare so the tests can just retry to get the
expected result.
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=53460
2023-03-17 19:02:08 +01:00
Francois Gouget
1da9e7c087
advapi32/tests: Better check the EnumServicesStatusExW() output.
...
It only has this one test.
2023-03-17 19:02:05 +01:00
Francois Gouget
3bfe315707
advapi32/tests: Separate the EnumServicesStatus() and EnumServicesStatusEx() tests.
2023-03-17 19:02:02 +01:00
Francois Gouget
7b3f804606
advapi32/tests: Better account for starting and stopping services.
...
The START_PENDING and STOP_PENDING services don't always have a
process id. Also trace unusual service states so we can identify which
ones behave in unexpected ways.
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=53460
2023-03-17 19:02:00 +01:00
Francois Gouget
eecb285841
advapi32/tests: Improve the resume handle service tests.
...
Fix the comments to not imply that the tests expect all services but
one to be returned.
Add a test of the needed buffer size to retrieve the remaining services
and document the limits of the test.
2023-03-17 19:01:57 +01:00
Sven Baars
88fa3459b9
kernelbase: Also call NtOpenKeyEx() on empty key names.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54691
2023-03-17 14:12:33 +01:00
Sven Baars
68920ee430
advapi32/tests: Test deleting 32-bit registry keys.
2023-03-17 14:12:33 +01:00