Share via


IFolder2::CreateFolder (Compact 7)

3/12/2014

The CreateFolder method create a new child folder under this folder.

Syntax

HRESULT CreateFolder(
  BSTR bstrName,
  OlItemType olItem,
  IFolder2** ppFolder
);

Parameters

  • bstrName
    [in] Name for the new folder.
  • olItem
    [in] Type of items the new folder should support.
  • ppFolder
    [out,retval] Pointer to the new folder.

Return Value

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