Mariusz PluciĆski vshader@gmail.com writes:
- StringFromGUID2(folderid, sGuid, sizeof(sGuid)/sizeof(sGuid[0]));
- hr = IKnownFolderManager_GetFolder(mgr, folderid, &folder);
- ok(hr==S_OK, "cannot get folder (id: %s, hr: 0x%08x)\n", wine_dbgstr_w(sGuid), hr);
+#define CHECK_KNOWN_FOLDER(id, csidl) \
check_single_known_folder(__LINE__, mgr, folderid, &id, csidl, # id, # csidl);
- CHECK_KNOWN_FOLDER(FOLDERID_AddNewPrograms, NO_CSIDL)
- CHECK_KNOWN_FOLDER(FOLDERID_AdminTools, CSIDL_ADMINTOOLS)
- CHECK_KNOWN_FOLDER(FOLDERID_AppUpdates, NO_CSIDL)
...
This should be a loop over an array.