Compartir a través de


IPersistStreamInit::InitNew

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Syntax

HRESULT InitNew(void);

Parameters

None.

Return Value

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 can choose to implement IPersistStreamInit simply for orthogonality or in anticipation of a future need for this method.

Remarks

To determine whether the platform supports this interface, see Determining Supported COM APIs.

Notes to Implementers

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

Requirements

Header ocidl.h, ocidl.idl
Library ole32.lib, uuid.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

IPersistStreamInit::Load