次の方法で共有


IPersistStreamInit::InitNew (Compact 2013)

3/26/2014

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.

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

See Also

Reference

IPersistStreamInit
IPersistStreamInit::Load