14#if defined(_WIN32) && !defined(SWIG)
29inline bool aShellWaitForItem(Folder* pFolder,
const std::wstring& itemName,
30 unsigned long timeoutMs = 30000)
32 unsigned long start = GetTickCount();
34 while ((GetTickCount() - start) < timeoutMs)
36 FolderItem* pCheck =
nullptr;
37 BSTR bstrName = SysAllocString(itemName.c_str());
38 if (!bstrName)
return false;
39 HRESULT hr = pFolder->ParseName(bstrName, &pCheck);
40 SysFreeString(bstrName);
42 if (SUCCEEDED(hr) && pCheck !=
nullptr)