GetSearchResultsFolder(&pShellBrowser, &hwnd, NULL);
if (hwnd)
- // TODO: Use message ID in header file
- ::PostMessageW(hwnd, WM_USER + 1, 0, (LPARAM) StrDupW(L"Starting search..."));
+ ::PostMessageW(hwnd, WM_SEARCH_START, 0, (LPARAM) StrDupW(L"Starting search..."));
return S_OK;
}
if (SUCCEEDED(hr))
{
LPCWSTR path = L"C:\\readme.txt";
- // TODO: Use message ID in header file
- ::PostMessageW(hwnd, WM_USER, 0, (LPARAM) StrDupW(path));
+ ::PostMessageW(hwnd, WM_SEARCH_ADD_RESULT, 0, (LPARAM) StrDupW(path));
}
return 0;
#include "../resource.h"
+#define WM_SEARCH_START WM_USER + 0
+#define WM_SEARCH_ADD_RESULT WM_USER + 1
+#define WM_SEARCH_UPDATE_STATUS WM_USER + 2
+
+struct SearchStart
+{
+ WCHAR szPath[MAX_PATH];
+ WCHAR szFileName[MAX_PATH];
+ WCHAR szQuery[MAX_PATH];
+};
+
#endif /* _SHELLFIND_PCH_ */