From 620d504cca3ef55611f0225e48de998d94a13f31 Mon Sep 17 00:00:00 2001 From: Ricardo Filipe Date: Fri, 26 Dec 2008 21:41:44 +0000 Subject: pdh: add stubs for PdhEnumObjectItemsA\W --- dlls/pdh/pdh.spec | 4 ++-- dlls/pdh/pdh_main.c | 20 ++++++++++++++++++++ include/pdh.h | 3 +++ 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/dlls/pdh/pdh.spec b/dlls/pdh/pdh.spec index ad46f40..7a62884 100644 --- a/dlls/pdh/pdh.spec +++ b/dlls/pdh/pdh.spec @@ -28,10 +28,10 @@ @ stub PdhEnumMachinesHA @ stub PdhEnumMachinesHW @ stub PdhEnumMachinesW -@ stub PdhEnumObjectItemsA +@ stdcall PdhEnumObjectItemsA(str str str str ptr str ptr long long) @ stub PdhEnumObjectItemsHA @ stub PdhEnumObjectItemsHW -@ stub PdhEnumObjectItemsW +@ stdcall PdhEnumObjectItemsW(wstr wstr wstr wstr ptr wstr ptr long long) @ stub PdhEnumObjectsA @ stub PdhEnumObjectsHA @ stub PdhEnumObjectsHW diff --git a/dlls/pdh/pdh_main.c b/dlls/pdh/pdh_main.c index 423f033..e6a0dc9 100644 --- a/dlls/pdh/pdh_main.c +++ b/dlls/pdh/pdh_main.c @@ -1059,3 +1059,23 @@ PDH_STATUS WINAPI PdhValidatePathExW( PDH_HLOG source, LPCWSTR path ) } return PdhValidatePathW( path ); } + +/*********************************************************************** + * PdhEnumObjectItemsA (PDH.@) + */ +PDH_STATUS WINAPI PdhEnumObjectItemsA( LPCSTR szDataSource, LPCSTR szMachineName, LPCSTR szObjectName, LPSTR mszCounterList, LPDWORD pcchCounterListLength, LPSTR mszInstanceList, LPDWORD pcchInstanceListLength, DWORD dwDetailLevel, DWORD dwFlags ) +{ + FIXME("%s, %s, %s, %s, %p, %s, %p, %d, 0x%08x: stub\n", debugstr_a(szDataSource), debugstr_a(szMachineName), debugstr_a(szObjectName), debugstr_a(mszCounterList), pcchCounterListLength, debugstr_a(mszInstanceList), pcchInstanceListLength, dwDetailLevel, dwFlags ); + + return ERROR_CALL_NOT_IMPLEMENTED; +} + +/*********************************************************************** + * PdhEnumObjectItemsW (PDH.@) + */ +PDH_STATUS WINAPI PdhEnumObjectItemsW( LPCWSTR szDataSource, LPCWSTR szMachineName, LPCWSTR szObjectName, LPWSTR mszCounterList, LPDWORD pcchCounterListLength, LPWSTR mszInstanceList, LPDWORD pcchInstanceListLength, DWORD dwDetailLevel, DWORD dwFlags ) +{ + FIXME("%s, %s, %s, %s, %p, %s, %p, %d, 0x%08x: stub\n", debugstr_w(szDataSource), debugstr_w(szMachineName), debugstr_w(szObjectName), debugstr_w(mszCounterList), pcchCounterListLength, debugstr_w(mszInstanceList), pcchInstanceListLength, dwDetailLevel, dwFlags ); + + return ERROR_CALL_NOT_IMPLEMENTED; +} diff --git a/include/pdh.h b/include/pdh.h index 7018247..082f5cc 100644 --- a/include/pdh.h +++ b/include/pdh.h @@ -175,6 +175,9 @@ PDH_STATUS WINAPI PdhCloseQuery(PDH_HQUERY); PDH_STATUS WINAPI PdhCollectQueryData(PDH_HQUERY); PDH_STATUS WINAPI PdhCollectQueryDataEx(PDH_HQUERY, DWORD, HANDLE); PDH_STATUS WINAPI PdhCollectQueryDataWithTime(PDH_HQUERY,LONGLONG *); +PDH_STATUS WINAPI PdhEnumObjectItemsA(LPCSTR, LPCSTR, LPCSTR, LPSTR, LPDWORD, LPSTR, LPDWORD, DWORD, DWORD); +PDH_STATUS WINAPI PdhEnumObjectItemsW(LPCWSTR, LPCWSTR, LPCWSTR, LPWSTR, LPDWORD, LPWSTR, LPDWORD, DWORD, DWORD); +#define PdhEnumObjectItems WINELIB_NAME_AW(PdhEnumObjectItems) PDH_STATUS WINAPI PdhGetCounterInfoA(PDH_HCOUNTER, BOOLEAN, LPDWORD, PPDH_COUNTER_INFO_A); PDH_STATUS WINAPI PdhGetCounterInfoW(PDH_HCOUNTER, BOOLEAN, LPDWORD, PPDH_COUNTER_INFO_W); #define PdhGetCounterInfo WINELIB_NAME_AW(PdhGetCounterInfo) -- 1.5.6.3