ok(!ret,"RetrieveUrlCacheEntryFile should have failed\n");
ok(GetLastError()==ERROR_INSUFFICIENT_BUFFER,"RetrieveUrlCacheEntryFile should have set last error to ERROR_INSUFFICIENT_BUFFER instead of %d\n",GetLastError());
ok(ret,"RetrieveUrlCacheEntryFile failed with error %d\n",GetLastError());
ok(lpCacheEntryInfo->dwStructSize==sizeof(*lpCacheEntryInfo),"lpCacheEntryInfo->dwStructSize was %d\n",lpCacheEntryInfo->dwStructSize);
ok(!strcmp(lpCacheEntryInfo->lpszSourceUrlName,TEST_URL),"lpCacheEntryInfo->lpszSourceUrlName should be %s instead of %s\n",TEST_URL,lpCacheEntryInfo->lpszSourceUrlName);
HeapFree(GetProcessHeap(),0,lpCacheEntryInfo);
ret=UnlockUrlCacheEntryFile(TEST_URL,0);
ok(ret,"UnlockUrlCacheEntryFile failed with error %d\n",GetLastError());
ret=DeleteUrlCacheEntry(TEST_URL);
ok(ret,"DeleteUrlCacheEntry failed with error %d\n",GetLastError());
ret=DeleteFile(filename);
todo_wine
ok(!ret&&GetLastError()==ERROR_FILE_NOT_FOUND,"local file should no longer exist\n");