Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
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 IPersistStreamInitsimply 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