From: Jon T. <jon...@dr...> - 2017-03-15 21:48:04
|
Use PDH_FUNCTION rather than just PDH_STATUS, so these functions are correctly decorated with WINAPI (= stdcall on x86), so linkage works correctly on x86. --- mingw-w64-headers/include/pdh.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mingw-w64-headers/include/pdh.h b/mingw-w64-headers/include/pdh.h index 7185f53..772aa5f 100644 --- a/mingw-w64-headers/include/pdh.h +++ b/mingw-w64-headers/include/pdh.h @@ -555,14 +555,14 @@ extern "C" { #define PdhVerifySQLDB __MINGW_NAME_AW(PdhVerifySQLDB) #if (_WIN32_WINNT >= 0x0600) -PDH_STATUS PdhAddEnglishCounterA( +PDH_FUNCTION PdhAddEnglishCounterA( PDH_HQUERY hQuery, LPCSTR szFullCounterPath, DWORD_PTR dwUserData, PDH_HCOUNTER *phCounter ); -PDH_STATUS PdhAddEnglishCounterW( +PDH_FUNCTION PdhAddEnglishCounterW( PDH_HQUERY hQuery, LPCWSTR szFullCounterPath, DWORD_PTR dwUserData, @@ -571,17 +571,17 @@ PDH_STATUS PdhAddEnglishCounterW( #define PdhAddEnglishCounter __MINGW_NAME_AW(PdhAddEnglishCounter) -PDH_STATUS PdhCollectQueryDataWithTime( +PDH_FUNCTION PdhCollectQueryDataWithTime( PDH_HQUERY hQuery, LONGLONG *pllTimeStamp ); -PDH_STATUS PdhValidatePathExA( +PDH_FUNCTION PdhValidatePathExA( PDH_HLOG hDataSource, LPCSTR szFullPathBuffer ); -PDH_STATUS PdhValidatePathExW( +PDH_FUNCTION PdhValidatePathExW( PDH_HLOG hDataSource, LPCWSTR szFullPathBuffer ); -- 2.8.3 |