https://git.reactos.org/?p=reactos.git;a=commitdiff;h=302356bf5779e439bf0292...
commit 302356bf5779e439bf0292f97d0099b0e9c336f0 Author: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com AuthorDate: Sat Feb 29 16:02:48 2020 +0900 Commit: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com CommitDate: Sat Feb 29 16:02:48 2020 +0900
[SHELL32_APITEST] Add DoPropTest to SHChangeNotify testcase
CORE-13950 --- modules/rostests/apitests/shell32/SHChangeNotify.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
diff --git a/modules/rostests/apitests/shell32/SHChangeNotify.cpp b/modules/rostests/apitests/shell32/SHChangeNotify.cpp index 372696d24ec..ff36540e38c 100644 --- a/modules/rostests/apitests/shell32/SHChangeNotify.cpp +++ b/modules/rostests/apitests/shell32/SHChangeNotify.cpp @@ -222,6 +222,22 @@ DoEnd(HWND hwnd) SendMessageW(s_hwnd, WM_COMMAND, IDOK, 0); }
+static BOOL CALLBACK +PropEnumProcEx(HWND hwnd, LPWSTR lpszString, HANDLE hData, ULONG_PTR dwData) +{ + if (HIWORD(lpszString)) + trace("Prop: '%S' --> %p\n", lpszString, hData); + else + trace("Prop: '%u' --> %p\n", LOWORD(lpszString), hData); + return TRUE; +} + +static void +DoPropTest(HWND hwnd) +{ + EnumPropsExW(hwnd, PropEnumProcEx, 0); +} + START_TEST(SHChangeNotify) { WCHAR szPath[MAX_PATH]; @@ -271,6 +287,8 @@ START_TEST(SHChangeNotify) return; }
+ DoPropTest(s_hwnd); + for (size_t i = 0; i < _countof(s_TestEntries); ++i) { DoTestEntry(&s_TestEntries[i]);