Commit Graph

51 Commits

Author SHA1 Message Date
Francois Gouget 071292bedd pdh: Update PdhAddEnglishCounterA/W() to match Windows 10 >= 2004.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-22 17:57:47 +02:00
Alexandre Julliard 918a41e483 pdh: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-24 22:01:42 +01:00
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 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
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 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
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
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
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
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
Marcus Meissner b59153997e pdh: Removed superflous NULL ptr check. 2007-10-02 13:31:42 +02:00
Hans Leidekker cf8b16bc9e pdh: Fix parameter handling in PdhAddEnglishCounter{A, W} and PdhCollectQueryDataWithTime. 2007-10-01 12:41:18 +02:00
Hans Leidekker a83509c7d3 pdh: Implement PdhCalculateCounterFromRawValue. 2007-10-01 12:41:10 +02:00
Hans Leidekker 0389ec60d9 pdh: Implement and test PdhCollectQueryDataEx. 2007-10-01 12:40:17 +02:00
Hans Leidekker 2f80bc0e68 pdh: Serialize access to performance counters and queries. 2007-10-01 12:36:32 +02:00
Hans Leidekker 504e7c2ff7 pdh: Implement PdhValidatePath{, Ex}{A, W}. 2007-10-01 12:36:17 +02:00
Hans Leidekker 1cec4e3b6e pdh: Implement and test PdhAddEnglishCounter{A, W} and PdhCollectQueryDataWithTime. 2007-07-23 12:00:46 +02:00
Hans Leidekker 0fbb4619e1 pdh: Implement and test PdhLookupPerfIndexByName{A, W} and PdhLookupPerfNameByIndex{A, W}. 2007-07-23 12:00:33 +02:00
Hans Leidekker 75a9146268 pdh: Add more tests and make them pass. 2007-07-23 11:59:34 +02:00
Hans Leidekker d95aa67a0a pdh: Add a stub processor time counter. 2007-07-23 11:59:21 +02:00
Hans Leidekker b2b4048f7a pdh: Fix two typos. 2007-07-12 12:57:09 +02:00
Hans Leidekker e1125c48b6 pdh: Use GetTickCount64 instead of GetTickCount. 2007-07-12 12:57:01 +02:00
Hans Leidekker 3ea31cb20b pdh: Implement and test PdhGetCounterInfo{A, W} and PdhGetCounterTimeBase. 2007-07-10 13:33:45 +02:00
Hans Leidekker 754ac8c478 pdh: Implement and test PdhGetRawCounterValue. 2007-07-10 13:33:35 +02:00
Hans Leidekker 0d516c5377 pdh: Implement and test PdhSetCounterScaleFactor and PdhGetFormattedCounterValue. 2007-07-10 13:32:42 +02:00
Hans Leidekker bdb218abcb pdh: Add an uptime counter source based on GetTickCount. 2007-07-10 13:32:20 +02:00
Hans Leidekker 4727bec54c pdh: Implement PdhCollectQueryData. 2007-06-28 14:13:57 +02:00
Hans Leidekker 0718c11ee1 pdh: Implement PdhAddCounter{A, W} and PdhRemoveCounter. 2007-06-28 14:13:12 +02:00
Hans Leidekker 3f1142e3bf pdh: Implement PdhOpenQuery{A, W} and PdhCloseQuery. 2007-06-28 14:12:55 +02:00