Export (0) Print
Expand All

IRichEditOleCallback::GetNewStorage method

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 codeDescription
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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Richole.h

DLL

Msftedit.dll

See also

Reference
IRichEditOleCallback

 

 

Community Additions

ADD
Show:
© 2014 Microsoft