Share via


IWinInetCacheAccess::SetCacheFilename method

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

See also

IWinInetCacheAccess