24 ExpectedName =
L"<WRONG FILE>";
25 ExpectedAttributes = (
SFGAOF)~0;
41 for (
size_t n = 0;
n <
len; ++
n)
46 ExpectedName = Array[
n].
Name;
65 CComPtr<IShellFolder> spFolder;
69 CComPtr<IEnumIDList> spEnum;
71 HRESULT hr = spFolder->EnumObjects(
NULL, EnumFolders ? SHCONTF_FOLDERS : SHCONTF_NONFOLDERS, &spEnum);
79 CComHeapPtr<ITEMID_CHILD>
child;
80 ULONG celtFetched = 0;
82 hr = spEnum->Next(1, &
child, &celtFetched);
98 SFGAOF Attributes = SFGAO_FILESYSANCESTOR | SFGAO_FOLDER | SFGAO_FILESYSTEM | SFGAO_HASSUBFOLDER;
101 if (!
_wcsicmp(ExpectedName,
L"TMP0.zip"))
105 ExpectedAttributes |= SFGAO_FOLDER;
108 trace(
"Found zip (%S)\n", ExpectedName);
113 Attributes &= (SFGAO_FILESYSTEM | SFGAO_FOLDER | SFGAO_FILESYSANCESTOR | SFGAO_STORAGEANCESTOR);
#define ok_hr(status, expected)
const SFGAOF BaseFolderAttributes
const SFGAOF BaseFileAttributes
static void test_EnumDirFiles(const WCHAR *TestFolder, BOOL EnumFolders)
void FindExpectedFile(FileInfo *Array, size_t len, IShellFolder *pFolder, PCUITEMID_CHILD pidl, LPCWSTR &ExpectedName, SFGAOF &ExpectedAttributes)
#define ok_hex(expression, result)
#define ok_int(expression, result)
static bool extract_resource(const WCHAR *Filename, LPCWSTR ResourceName)
#define INVALID_HANDLE_VALUE
BOOL WINAPI DeleteFileW(IN LPCWSTR lpFileName)
BOOL WINAPI CreateDirectoryW(IN LPCWSTR lpPathName, IN LPSECURITY_ATTRIBUTES lpSecurityAttributes)
BOOL WINAPI RemoveDirectoryW(IN LPCWSTR lpPathName)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
DWORD WINAPI GetTempPathW(IN DWORD count, OUT LPWSTR path)
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
HRESULT WINAPI StrRetToBufW(LPSTRRET src, const ITEMIDLIST *pidl, LPWSTR dest, UINT len)
static IShellFolder IShellItem **static IBindCtx LPITEMIDLIST SFGAOF
HRESULT GetDisplayNameOf([in] PCUITEMID_CHILD pidl, [in] SHGDNF uFlags, [out] STRRET *lpName)
#define FILE_FLAG_DELETE_ON_CLOSE
#define InitializeShellFolder(Filename, pFolder)
#define ok_displayname(pFolder, pidl, Flags, Name)
#define IDR_ZIP_TEST_FILE
#define PathAddBackslashW
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
void __winetest_cdecl winetest_push_context(const char *fmt,...)
void winetest_pop_context(void)
const ITEMID_CHILD UNALIGNED * PCUITEMID_CHILD
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes
#define MAKEINTRESOURCEW(i)