IPersistStreamInit::InitNew  29Q3JVZ

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

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.

See Also

IPersistStreamInit::Load