From 8c1c77f6a673cf1ac4b1ce96b79f0116501a00c1 Mon Sep 17 00:00:00 2001 From: spx Date: Mon, 21 Jun 2010 23:25:54 +0000 Subject: [PATCH] Fixed swapped window name and class name. (RainmeterQuery.h) --- Library/RainmeterQuery.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/RainmeterQuery.h b/Library/RainmeterQuery.h index 5ceb50f3..06948175 100644 --- a/Library/RainmeterQuery.h +++ b/Library/RainmeterQuery.h @@ -38,7 +38,7 @@ Usage: void QueryRainmeterSkinsPath(HWND hWndSelf) { - HWND hWndRainmeter = FindWindow(RAINMETER_QUERY_WINDOW_TITLE, RAINMETER_QUERY_WINDOW_CLASS); + HWND hWndRainmeter = FindWindow(RAINMETER_QUERY_CLASS_NAME, RAINMETER_QUERY_WINDOW_NAME); if (hWndRainmeter) { PostMessage(hWndRainmeter, WM_QUERY_RAINMETER, RAINMETER_QUERY_ID_SKINS_PATH, (LPARAM)hWndSelf); @@ -75,8 +75,8 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) #include -#define RAINMETER_QUERY_WINDOW_NAME TEXT("RainmeterTrayClass") -#define RAINMETER_QUERY_CLASS_NAME NULL +#define RAINMETER_QUERY_CLASS_NAME TEXT("RainmeterTrayClass") +#define RAINMETER_QUERY_WINDOW_NAME NULL #define WM_QUERY_RAINMETER WM_APP + 1000