IPersistStreamInit::InitNew

This method 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.

Requirements

Runs On Versions Defined in Include Link to
Windows CE OS 3.0 and later Ocidl.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

IPersistStreamInit::Load

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.