---
name: "CreateDataCache"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/CreateDataCache"
---

# CreateDataCache(3w)

## NAME

**CreateDataCache** (OLE32.@)

## SYNOPSIS

HRESULT CreateDataCache\
  (\
   LPUNKNOWN *pUnkOuter*,\
   REFCLSID  *rclsid*,\
   REFIID    *riid*,\
   LPVOID\*   *ppvObj*\
  )

## DESCRIPTION

Creates a data cache to allow an object to render one or more of its views, whether running or not.

## PARAMS

*pUnkOuter* **\[In\]**  Outer unknown for the object.

*rclsid* **\[In\]**  **.**

*riid* **\[In\]**  **IID** of interface to return.

*ppvObj* **\[Out\]**  Address where the data cache object will be stored on return.

## RETURNS

**Success:** **S\_OK**.

**Failure:** **HRESULT** code.

## NOTES

The following interfaces are supported by the returned data cache object: IOleCache, IOleCache2, IOleCacheControl, IPersistStorage, IDataObject, IViewObject and IViewObject2.

## IMPLEMENTATION

Declared in **"objbase.h"**.

Implemented in **"dlls/ole32/datacache.c"**.

Debug channel **"ole"**.
