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

# OleSetClipboard(3w)

## NAME

**OleSetClipboard** (OLE32.@)

## SYNOPSIS

HRESULT OleSetClipboard\
  (\
   IDataObject\* *data*\
  )

## DESCRIPTION

Places a pointer to the specified *data* object onto the clipboard, making the *data* object accessible to the OleGetClipboard function.

## RETURNS

**S\_OK** IDataObject pointer placed on the clipboard **CLIPBRD\_E\_CANT\_OPEN** OpenClipboard failed **CLIPBRD\_E\_CANT\_EMPTY** EmptyClipboard failed **CLIPBRD\_E\_CANT\_CLOSE** CloseClipboard failed **CLIPBRD\_E\_CANT\_SET** SetClipboard failed

## IMPLEMENTATION

Declared in **"ole2.h"**.

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

Debug channel **"ole"**.
