Compartir a través de


IPersistStreamInit::InitNew (Windows CE 5.0)

Send Feedback

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

HRESULT InitNew(void);

Parameters

None.

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 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

OS Versions: Windows CE 3.0 and later.
Header: Ocidl.h, Ocidl.idl.
Link Library: Ole32.lib, Uuid.lib.

See Also

IPersistStreamInit::Load

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.