return GetFileAttributesW(name) != INVALID_FILE_ATTRIBUTES;
}
-#if 0
static BOOL file_has_content(const CHAR *name, const CHAR *content)
{
CHAR buf[MAX_PATH];
CloseHandle(file);
return strcmp(buf, content)==0;
}
-#endif
/* initializes the tests */
static void init_shfo_tests(void)
}
/* tests the FO_COPY action */
-#if 0
static void test_copy(void)
{
SHFILEOPSTRUCTA shfo, shfo2;
ok(DeleteFileA("dir\\abcdefgh.abc"), "Expected file to exist\n");
ok(RemoveDirectoryA("dir"), "Expected dir to exist\n");
}
-#endif
/* tests the FO_MOVE action */
-#if 0
static void test_move(void)
{
SHFILEOPSTRUCTA shfo, shfo2;
ok(file_exists("test3.txt"), "Expected test3.txt to exist\n");
}
}
-#endif
static void test_sh_create_dir(void)
{
test_rename();
clean_after_shfo_tests();
-#if 0
init_shfo_tests();
test_copy();
clean_after_shfo_tests();
init_shfo_tests();
test_move();
clean_after_shfo_tests();
-#endif
test_sh_create_dir();
clean_after_shfo_tests();
RemoveDirectoryA(".\\testdir");
}
-#if 0
/* perform test */
static void test_EnumObjects(IShellFolder *iFolder)
{
for (i=0;i<5;i++)
IMalloc_Free(ppM, idlArr[i]);
}
-#endif
static void test_BindToObject(void)
{
ok(result, "SHGetPathFromIDListW failed\n");
}
-#if 0
static void test_EnumObjects_and_CompareIDs(void)
{
ITEMIDLIST *newPIDL;
IShellFolder_Release(IDesktopFolder);
}
-#endif
/* A simple implementation of an IPropertyBag, which returns fixed values for
* 'Target' and 'Attributes' properties.
test_ParseDisplayName();
test_SHParseDisplayName();
test_BindToObject();
-#if 0
test_EnumObjects_and_CompareIDs();
-#endif
test_GetDisplayName();
test_GetAttributesOf();
test_SHGetPathFromIDList();