Share via


IStore::CreateFolder (Compact 7)

3/12/2014

The CreateFolder method create a new folder in this item store.

Syntax

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

Parameters

  • bstrFolderName
    [in] The name you want to give this folder. For information on the BSTR type, see BSTR.
  • olItem
    [in] The type of items you want store in this folder. For more information, see OlItemType.
  • ppFolder
    [out, retval] A handle to the returned folder object.

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

IStore
IFolder2
OlItemType
BSTR