CreateUrlCacheContainerW function (winineti.h)

Creates a cache container in the specified cache path to hold cache entries based on the specified name, cache prefix, and container type.

Note  Note: This API is deprecated. Please use the Extensible Storage Engine instead.
 

Syntax

BOOLAPI CreateUrlCacheContainerW(
  LPCWSTR Name,
  LPCWSTR lpCachePrefix,
  LPCWSTR lpszCachePath,
  DWORD   KBCacheLimit,
  DWORD   dwContainerType,
  DWORD   dwOptions,
  LPVOID  pvBuffer,
  LPDWORD cbBuffer
);

Parameters

Name

The name to give to the cache.

lpCachePrefix

The cache prefix to base the cache on.

lpszCachePath

The cache prefix to create the cache in.

KBCacheLimit

The size limit of the cache in whole kilobytes, or 0 for the default size.

dwContainerType

The container type to base the cache on.

dwOptions

This parameter is reserved and must be 0.

pvBuffer

This parameter is reserved and must be NULL.

cbBuffer

This parameter is reserved and must be NULL.

Return value

Returns TRUE if successful, or FALSE otherwise. To get extended error information, call GetLastError.

Remarks

Note

The winineti.h header defines CreateUrlCacheContainer as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header winineti.h
Library Wininet.lib
DLL Wininet.dll

See also

Caching

CommitUrlCacheEntry

WinINet Functions