IPersistStreamInit::InitNew

Initializes the object to a default state. This method is called instead of IPersistStreamInit::Load.

HRESULT InitNew(void);
 

Return Values

This method supports the standard return values E_OUTOFMEMORY and E_UNEXPECTED, as well as the following:

S_OK
The object successfully initialized itself.
E_NOTIMPL
The object requires no default initialization. This error code is allowed because an object may choose to implement IPersistStreamInit simply for orthogonality or in anticipation of a future need for this method.

Remarks

Notes to Implementers

If the object has already been initialized with Load, then this method must return E_UNEXPECTED.

QuickInfo

  Windows NT: Use version 4.0 or later.
  Windows: Use Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in ocidl.h.

See Also

IPersistStreamInit::Load