Commit Graph

73 Commits

Author SHA1 Message Date
Michael Stefaniuc 7fb6c7a034 pdh: Use wide-char string literals.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-05 09:56:45 +01:00
Alexandre Julliard 0a23d04270 pdh: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-18 23:51:51 +02:00
Alexandre Julliard f1fe6d5415 pdh: Use strncmpiW instead of memicmpW for strings without embedded nulls.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-08 08:34:41 -05:00
Michael Stefaniuc 3215c7e3c8 pdh: Remove redundant not-NULL check (coccinellery).
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-28 21:37:30 +01:00
Andrey Gusev fe8ed8af8d pdh: Add PdhVbAddCounter stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=44109
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-14 16:53:16 +01:00
Michael Stefaniuc acb879c9d2 pdh: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-11 22:39:02 +02:00
Michael Stefaniuc 5d3ba908e4 pdh/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-04 14:22:51 +02:00
Michael Stefaniuc d6e503a20a pdh: Use the global HeapAlloc() wrappers.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-03 12:01:58 +01:00
Alistair Leslie-Hughes 39378faddf pdh/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-07-05 09:18:20 +02:00
Francois Gouget 88c4d3361c pdh: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.
And standardize their formatting and type names.

Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-22 12:01:57 +01:00
Austin English de71271347 pdh: Add PdhBindInputDataSourceA/W stubs.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-30 08:16:56 +01:00
Sebastian Lackner 4933f08316 pdh: Fix prototype of PdhGetLogFileType[A/W].
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-25 11:51:07 +01:00
Austin English a0e2a3f20a pdh: Add PdhGetLogFileTypeA/W stubs.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 12:04:46 +01:00
Francois Gouget 362a260409 pdh: Remove an unneeded NONAMELESSSTRUCT directive. 2015-03-18 19:38:53 +09:00
Guillaume Charifi f823b6abe3 pdh: Implement PdhExpandCounterPathA/W. 2014-06-12 18:24:09 +02:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Alexandre Julliard 5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
Michael Stefaniuc 2e1708dc1b tests: Readying some tests for the compilation with -D__WINESRC__. 2013-10-02 11:03:26 +02:00
Alexandre Julliard 0b8c655591 pdh: Don't bother to delete critical sections at process exit. 2013-05-16 12:56:21 +02:00
Hans Leidekker 4933dc78c6 pdh: Accept the local machine name in counter paths. 2012-12-21 14:15:45 +01:00
Francois Gouget fcd8a8f447 pdh: Delete the static critical section when unloading the dll. 2011-11-17 11:38:01 +01:00
Francois Gouget 25088379d9 pdh/tests: Some tests require that the user interface be in English. 2011-09-16 17:23:11 +02:00
Francois Gouget 770537011a pdh/tests: Make the test pass on Windows 2000. 2011-09-16 17:23:11 +02:00
Francois Gouget 4c531edfd2 pdh/tests: Rename a counter to make the purpose of the test immediately clear. 2011-09-16 17:23:11 +02:00
Alexandre Julliard 81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00
Alexandre Julliard b86d515ed6 dlls: Remove explicit imports of kernel32 and ntdll. 2010-07-21 17:38:36 +02:00
Alexandre Julliard bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
Alexandre Julliard 6164ce2d82 makefiles: Use the standard C_SRCS variable as the list of test files.
This enables it to be auto-updated by make_makefiles.
2010-02-22 10:47:11 +01:00
Andrew Nguyen 2da6570ca4 pdh: Implement and test PdhGetDllVersion. 2010-02-01 12:41:30 +01:00
Hans Leidekker 960c2088d7 pdh: Add a stub implementation of PdhSetDefaultRealTimeDataSource. 2010-01-25 13:02:35 +01:00
Austin English 12da91b8dc pdh: Add stubs for PdhExpandWildCardPathA/W. 2009-11-23 13:09:17 +01:00
Joris Huizer 9e39e8a7e9 pdh: Return correct error on allocation failure. 2009-05-11 12:43:41 +02:00
Hans Leidekker 754b97c72c pdh: Implement PdhMakeCounterPathA/W. 2009-05-08 12:27:25 +02:00
Ricardo Filipe cb8297623a pdh: Add stub for EdhEnumObjectItemsA/W. 2009-01-28 13:47:07 +01:00
James Hawkins 6c59a15a19 pdh: Fix two tests that fail on win2k3. 2008-04-24 11:51:17 +02:00
Rob Shearman 48000893f9 makefiles: Simplify the use of the IMPORTLIB variable in the DLL makefiles.
Only specify the root to keep platform-specifics out of the individual 
DLL makefiles.
2008-03-04 20:55:01 +01:00
Jeff Latimer c0700eeff3 pdh: Pass parameters through to PdhLookupPerfIndexByNameW for checking. 2008-02-19 14:11:54 +01:00
Jeff Latimer 75adca5385 pdh: Remove unnecessary test done in PdhLookupPerfNameByIndexW. 2008-02-18 14:22:31 +01:00
Jeff Latimer 33c386f7fe pdh: Check for size > 0 but no buffer. 2008-02-18 14:22:00 +01:00
Jeff Latimer 52f03de951 pdh/tests: Add test for size > 0 but no buffer. 2008-02-18 14:21:46 +01:00
Marcus Meissner 22aed3267b pdh: Fixed wrong condition. 2008-02-04 11:14:44 +01:00
Michael Stefaniuc 2c80b9d2d2 pdh: Rename the wrappers around HeapAlloc() &Co to use the standard names. 2007-12-10 12:04:01 +01:00
Hans Leidekker 9a51ac7249 pdh: Make two tests pass on Vista. 2007-11-12 11:40:45 +01:00
Hans Leidekker fcb8e3b197 pdh: Remove or fix tests that fail on Windows. 2007-10-31 14:06:03 +01:00
Michael Stefaniuc 9056049882 pdh: Fix two missing LeaveCriticalSection() on error paths. 2007-10-31 12:39:54 +01:00
Alexandre Julliard 55d274d1d2 pdh: Fix a couple of race conditions in the thread handling. 2007-10-30 13:04:23 +01:00
Francois Gouget 63a8755457 pdh/tests: Fix compilation on systems that don't support nameless unions. 2007-10-11 19:52:43 +02:00
Marcus Meissner b59153997e pdh: Removed superflous NULL ptr check. 2007-10-02 13:31:42 +02:00
Hans Leidekker 290869b03d pdh: Skip tests when running on non-english locale. 2007-10-01 12:41:25 +02:00
Hans Leidekker cf8b16bc9e pdh: Fix parameter handling in PdhAddEnglishCounter{A, W} and PdhCollectQueryDataWithTime. 2007-10-01 12:41:18 +02:00