Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Invokes InternetSetOption to change the name and path of the cache file.
![]() |
Syntax
HRESULT SetCacheFilename(
[in] LPCWSTR pwzNewCacheFilePath,
[out] DWORD *pdwWinInetError
);
Parameters
pwzNewCacheFilePath [in]
A LPCWSTR that specifies the new file name and path.pdwWinInetError [out]
Address of a DWORD that receives a return code, or zero if the call was successful.
Return value
This method can return one of these values.
| Return code | Description |
|---|---|
| S_OK | The operation completed successfully. |
| E_FAIL | The operation failed and set pdwWinInetError. |
Remarks
Microsoft Win32 Internet (WinInet) must be able to delete the old cache file after it moves it to the new location.
Requirements
Minimum supported client |
Windows XP |
Minimum supported server |
Windows Server 2003 |
Product |
Internet Explorer 9 |
Header |
Urlmon.h |
IDL |
Urlmon.idl |
DLL |
Mshtml.dll |
.png)