Commit Graph

687 Commits

Author SHA1 Message Date
Rolf Kalbermatter af5f6325e5 advapi32: Implement QueryServiceStatusEx.
Based on a patch by Anastasius Focht.
2007-04-20 13:18:59 +02:00
Francois Gouget 042a78dd05 advapi32/tests: Use memcmp() instead of strcmp() so that we can check 'intrazeroed' strings. 2007-04-18 13:13:09 +02:00
Francois Gouget b934fc90eb advapi32: Fix and extend the RegQueryValueEx() tests.
- Added tests for empty and zero-byte strings. Wine passes these tests, sort of.
- Check that the returned string is correct.
- All known Windows versions implement RegQueryValueExA(), so complain if it is not implemented.
- Only allow the Win9x quirks for the Ansi version.
- Query the name2A/W value for the string2A/W tests!
- The test_hkey_main_Value_A/W() functions were doing a sizeof() on the string parameter to compute the string's full size!
- We must reset GLE before each test, otherwise Win9x skips all but the first test.
2007-04-16 12:08:25 +02:00
Paul Vriens 402f4e9c74 advapi32/tests: Fix RegQueryValueExA test for win9x and ME. 2007-04-12 16:16:44 +02:00
Paul Vriens 7dd647b633 advapi32/tests: Use skip when OpenSCManagerA is not implemented. 2007-04-11 11:20:47 +02:00
Paul Vriens 1e3b6afa57 advapi32/tests: Make sure NT4 and W2K tests don't fail. 2007-04-10 14:23:14 +02:00
Lei Zhang d347ebe196 advapi32: Spelling fixes. 2007-04-07 11:01:17 +02:00
Stefan Leichter 0dcf196001 advapi32: Add some tests for RegDeleteTreeA. 2007-04-05 10:53:59 +02:00
Andrew Talbot 3c75d9380a advapi32: Constify some variables. 2007-04-03 11:22:20 +02:00
Paul Vriens ddaacfbe2c advapi32/tests: Some cleanup. 2007-04-02 11:29:14 +02:00
Paul Vriens 11f6e89f87 advapi32/tests: Reopen the main handle if needed. 2007-04-02 11:29:04 +02:00
Paul Vriens 81a95ff6ee advapi32/tests: Add check to see if SetEntriesInAclW is implemented. 2007-03-30 10:09:15 +02:00
Paul Vriens 33b8ec1cb5 advapi32/tests: Add check to see if ImpersonateSelf is implemented. 2007-03-30 10:09:10 +02:00
Paul Vriens bb00c95c45 advapi32/tests: Add check to see if LookupAccountNameA is implemented. 2007-03-29 21:13:54 +02:00
Paul Vriens e54247b10c advapi32/tests: Move check for ERROR_CALL_NOT_IMPLEMENTED to the first call. 2007-03-29 21:13:38 +02:00
Paul Vriens 640cb29bb7 advapi32/tests: Use skip. 2007-03-29 21:13:32 +02:00
Francois Gouget d9e8a0f63e Remove unneeded checks on the GetModuleHandle() return value for cases where we are linked with the dll. 2007-03-28 12:36:13 +02:00
Jacek Caban 2cd033eee1 advapi: Improve SetEntriesInAclW stub. 2007-03-20 12:39:41 +01:00
Jacek Caban 112257e59d advapi: Constify argument of StartServiceCtrlDispatcher[AW] functions. 2007-03-20 12:39:36 +01:00
Andrew Talbot a2e7c325f9 advapi32: Replace inline static with static inline. 2007-03-17 20:03:29 +01:00
Detlef Riekenberg fc45352781 advapi32/tests: DuplicateTokenEx is not present on all platforms. 2007-03-17 19:52:01 +01:00
Juan Lang 81e7d69dfd advapi32: Implement RegGetKeySecurity with NtQuerySecurityObject. 2007-03-17 19:51:47 +01:00
Paul Vriens 6598aa5028 advapi32/tests: RegQueryValueW is not always implemented. 2007-03-16 11:21:12 +01:00
Rob Shearman c2b05d32f0 advapi32: Fix a failing test on Windows caused by the existence of one SID that always has no associated account. 2007-03-16 11:21:02 +01:00
Paul Vriens b4c33d5f99 advapi32/tests: No need to check return value of GetModuleHandle. 2007-03-14 22:44:07 +01:00
Paul Vriens 33e310f63d advapi32/tests: Use GetModuleHandle and skip. 2007-03-13 21:08:13 +01:00
Paul Vriens f41ebce136 advapi32/tests: Use GetModuleHandle and skip. 2007-03-13 21:08:07 +01:00
Dan Kegel 60cb73b573 advapi32: RegGetKeySecurity needs to pass length of struct to caller. 2007-03-13 11:52:47 +01:00
Andrew Talbot dea58c017d advapi32: Explicitly initialize nested array element. 2007-03-13 11:52:22 +01:00
Paul Vriens 6544831184 advapi32/tests: Prepare for more tests and use skip. 2007-03-12 12:23:51 +01:00
Andrew Talbot 39fb7839a7 advapi32: Constify some variables. 2007-03-12 12:01:24 +01:00
Andrew Talbot 3b695ae33a advapi32: Constify some variables. 2007-03-12 12:01:17 +01:00
Andrew Talbot 1a71294ad3 advapi32: Constify some variables. 2007-03-12 12:01:10 +01:00
Alexandre Julliard 7e2228f15a advapi32: Fixed registry test that failed because of a buffer overflow. 2007-03-08 21:06:31 +01:00
Alexandre Julliard 9dd1f1e341 Added version information for a number of dlls. 2007-03-07 21:25:16 +01:00
Paul Vriens 69299c7738 advapi32/tests: Move skip to a more appropriate place. 2007-03-05 16:43:27 +01:00
Paul Vriens 71697ec116 advapi32/tests: Don't use FreeLibrary with GetModuleHandle. 2007-03-05 16:43:27 +01:00
Andrew Talbot a170f762c0 advapi32: Replace const pointer parameters with correct pointers to const. 2007-03-05 12:09:03 +01:00
Andrew Talbot 201317ed5e advapi32: Constify a variable. 2007-03-05 12:08:58 +01:00
Paul Vriens d478f5dadd advapi32/tests: Make use of skip. 2007-03-05 12:05:47 +01:00
Paul Vriens 6bf1a6c5d2 advapi32/tests: Make use of skip. 2007-03-02 11:52:33 +01:00
Alexandre Julliard 53d838a1bf advapi32: Create the service manager registry key if needed. 2007-02-28 20:51:25 +01:00
Alexandre Julliard ee1706035a advapi32: Reimplement QueryServiceConfigA on top of QueryServiceConfigW. 2007-02-28 20:47:51 +01:00
Alexandre Julliard ec636f151b advapi32: Avoid slashes and backslashes in user names. 2007-02-28 14:51:04 +01:00
Vitaliy Margolen c0a5671d9c ntdll: More error checking. Properly handle NULL ACLs. 2007-02-28 13:28:33 +01:00
Rob Shearman d342d1413c server: Add get_token_impersonation_level server call for retrieving the impersonation level from a token.
Add tests for GetTokenInformation(TokenImpersonationLevel).
2007-02-21 19:49:37 +01:00
Rob Shearman 6a76a0ac7a server: Check object's security when creating handles.
Don't check object's security when duplicating a handle of the same or 
lower access rights. Based on a patch by Vitaliy Margolen.
2007-02-21 19:49:02 +01:00
Rob Shearman c9b9847dce server: Track the impersonation level of tokens. 2007-02-16 13:09:55 +01:00
Rob Shearman 795b40187e advapi32: Add tests for token impersonation levels and what operations are allowed at each level. 2007-02-15 19:16:52 +01:00
Rob Shearman 4ea7535497 advapi32: Add some more tests for AccessCheck that determine what
token impersonation levels it accepts and to show that it doesn't
accept primary tokens.
2007-02-15 19:15:42 +01:00
Vitaliy Margolen 78a28e6043 advapi32: Add more tests for DuplicateHandle security. 2007-02-15 14:19:29 +01:00
Bang Jun-Young fdff5c3a3a ntdll: Fix NtUnloadKey to match the DDK. 2007-02-05 12:26:01 +01:00
Bang Jun-Young 671b023de8 advapi32: Fix prototypes to match the PSDK. 2007-02-05 12:25:48 +01:00
Vitaliy Margolen c04e7e7878 advapi32: Add more tests for granted access mask. Fix test on Wine. 2007-01-25 12:52:27 +01:00
Vitaliy Margolen 2cf11ef771 advapi32: Add few more tests for token access check and fix it on Wine. 2007-01-25 12:42:32 +01:00
Bang Jun-Young 793b12cdad advapi32: Do not include unnecessary headers. 2007-01-22 13:29:00 +01:00
James Hawkins 6cc4510b71 advapi32: Add tests for RegQueryValue. 2007-01-16 16:54:17 +01:00
Francois Gouget f46cfe601c advapi32: Remove a useless macro. 2007-01-05 20:27:13 +01:00
Rob Shearman 214eb389c9 advapi32: Change the test for the type parameter of RegQueryValueExA to only run on Win9x, since the value is set to a random value on NT. 2006-12-28 12:17:04 +01:00
Francois Gouget cbec9337e6 advapi32/tests: Replace an '#if 0' with an 'if (0)'. 2006-12-14 20:24:41 +01:00
Paul Vriens 3d3529d605 advapi32/tests: Free memory after use. 2006-12-06 11:26:48 +01:00
Andrew Talbot d05fabb660 advapi32: Eliminate wild pointers. 2006-12-05 11:37:57 +01:00
James Hawkins 19a49eb51a advapi32: Add tests for LookupAccountName. 2006-12-01 13:12:04 +01:00
James Hawkins 024237efaa advapi32: Remove redundant NULL checks before CRYPT_Free. 2006-11-30 12:27:03 +01:00
Dmitry Timoshkov e5b4b47c16 advapi32: Make some data const. 2006-11-29 12:44:43 +01:00
Francois Gouget b2656633a6 Add some documentation headers to make winapi_check happy. 2006-11-13 13:01:15 +01:00
Andrew Talbot ac28398d12 advapi32: Constify a parameter. 2006-11-13 12:47:10 +01:00
Alexandre Julliard 3d73173fe1 advapi32: Fixed last error check in RegSaveKey. 2006-11-10 12:22:44 +01:00
Francois Gouget 5cff5038a9 Fix ntsecapi.h so it does not depend on winternl.h. 2006-11-08 12:53:19 +01:00
Francois Gouget 30e44c85c8 Assorted spelling fixes. 2006-11-07 15:25:24 +01:00
Andrey Turkin f15af94db8 advapi32: Test for OpenProcessToken with MAXIMUM_ALLOWED access. 2006-11-06 13:48:06 +01:00
Eric Pouech 5425cb35ed advapi32: Fixed a couple items from previous patch (spotted by G Pfeifer). 2006-10-23 12:27:12 +02:00
Eric Pouech 4dfd319dbf advapi32: Plug a couple of memory leaks. 2006-10-20 13:49:50 +02:00
Alexandre Julliard e852f195a0 advapi32: Cast-qual warning fix. 2006-10-18 14:08:13 +02:00
Francois Gouget ef998ea6cb Assorted spelling fixes. 2006-10-16 11:33:38 +02:00
Alexandre Julliard 6a9222fc39 Fixed some printf warnings caused by using sizeof. 2006-10-12 14:58:25 +02:00
James Hawkins 2730fe6d1c advapi32: Make internal functions static. 2006-10-12 11:34:41 +02:00
James Hawkins ca118989f4 advapi32: Remove redundant NULL check before SERV_free (found by Smatch). 2006-10-06 15:20:31 +02:00
Hans Leidekker 53535d6e13 advapi32/tests: Win64 printf format warning fixes. 2006-10-04 20:56:14 +02:00
Hans Leidekker 4301816d47 advapi32: Win64 printf format warning fixes. 2006-10-03 16:21:58 +02:00
Paul Vriens 1a2aa7ca3d advapi32: Make sure it's a real cleanup. 2006-10-02 21:38:04 +02:00
Michael Stefaniuc 85ce5117c5 Add a WINE_NO_LONG_INT define to many makefiles to ease the transition of DWORD/LONG/ULONG from long to int. 2006-09-29 16:08:30 +02:00
Huw Davies 38d33e33ae advapi32: Fix ADVAPI_GetComputerSid to work correctly if a sid doesn't exist in the registry.
This makes the tests run correctly on first invocation.
2006-09-25 17:55:40 +02:00
Alexandre Julliard 32ab895e46 makefiles: Generate the dependencies line to avoid some code duplication. 2006-09-14 09:38:16 +02:00
Francois Gouget 06f9532dda Assorted spelling fixes. 2006-09-08 11:04:53 +02:00
Robert Reif c339d8e272 advapi32: Fix lsa tests on windows98. 2006-09-07 10:21:57 +02:00
Alexandre Julliard 5cf75e615a makefiles: Only run test and documentation targets in directories that need them. 2006-08-28 13:37:44 +02:00
Andrew Talbot 0eebab8652 advapi32/tests: Cast-qual warnings fix. 2006-08-28 11:36:58 +02:00
Robert Reif d46c9e2ec2 advapi32: Fix security tests to not crash on windows. 2006-08-28 11:36:02 +02:00
Andrew Talbot 9959d7e37f advapi32: Cast-qual warnings fix. 2006-08-26 19:16:19 +02:00
Robert Reif f0085e6376 advapi32: Fix LookupAccountSid and tests to pass on windows and wine. 2006-08-26 18:55:12 +02:00
Robert Reif ee32bd99dd advapi32: Fix lsa tests. 2006-08-26 18:55:04 +02:00
Robert Reif 58ce495599 advapi32: Output information on failed LsaQueryInformationPolicy tests. 2006-08-24 14:09:14 +02:00
Robert Reif ca80c55ae8 advapi32: LookupAccountSid buffer size query tests. 2006-08-21 12:07:54 +02:00
Robert Reif 39b77ec560 advapi32: LookupAccountSid buffer size query fixes. 2006-08-21 12:07:50 +02:00
Robert Reif e8e501f44b advapi32: Fix test_LookupAccountSid to work on win9x. 2006-08-18 11:35:22 +02:00
Robert Shearman bc590e87a6 advapi32: Add tests for RegQueryValueEx to show that it sets the data
size to 0 when a buffer isn't present and that it sets the type to
REG_NONE on Win9x.
2006-08-16 17:02:04 +02:00
Robert Reif 6abfc027d5 advapi32: Fix LsaQueryInformationPolicy test to pass on NT4. 2006-08-16 12:41:17 +02:00
Robert Reif b0498a76e0 advapi32: Move duplicated code into function. 2006-08-14 20:17:09 +02:00
Robert Reif 70071af6ad advapi32: Try again with different access mask if LsaOpenPolicy fails with STATUS_ACCESS_DENIED. 2006-08-14 20:17:09 +02:00