Partager via


IFolder2::CreateItem (Compact 7)

3/12/2014

The CreateItem method create a new item in this folder. The type of the item will be determined by.

Syntax

HRESULT CreateItem(
  OlItemType olItemType,
  IItem2** ppItem
);

Parameters

  • olItemType
    [in] Type of item to create. OlUndefinedItem will create an item of the folder's default item type .
  • ppItem
    [out, retval] Pointer to the new item .

Return Value

The CreateItem method returns the following standard HRESULT values.

  • S_OK
    The operation completed successfully.
  • E_FAIL
    The operation failed due to an unspecified error.
  • E_INVALIDARG
    The operation failed because one (or more) of the arguments is not valid.
  • E_OUTOFMEMORY
    The operation failed because it needs more memory resources.
  • E_UNEXPECTED
    The operation failed due to an unexpected failure.

Remarks

New for Windows Embedded Compact 7.

Requirements

Header

pimstore.h

Library

Pimstore.lib

See Also

Reference

IFolder2