IRichEditOleCallback::GetNewStorage method (richole.h)

Provides storage for a new object pasted from the clipboard or read in from an Rich Text Format (RTF) stream.

Syntax

HRESULT GetNewStorage(
  LPSTORAGE *lplpstg
);

Parameters

lplpstg

Type: LPSTORAGE*

The address of the IStorage interface created for the new object.

Return value

Type: HRESULT

Returns S_OK on success. If the method fails, it can return one of the following values.

Return code Description
E_INVALIDARG
There was an invalid argument.
E_OUTOFMEMORY
There was not enough memory to do the operation.

Remarks

This method must be implemented to allow cut, copy, paste, drag, and drop operations of Component Object Model (COM) objects.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header richole.h
DLL Msftedit.dll

See also

IRichEditOleCallback

Reference