Share via


IStore::GetDefaultFolder (Compact 7)

3/12/2014

The GetDefaultFolder method retrieves a particular default folder from this item store.

Syntax

HRESULT GetDefaultFolder(
  OlDefaultFolders olFolder,
  IFolder2** ppFolder
);

Parameters

  • olFolder
    [in] The type of folder that you want. For more information, see OlDefaultFolders.
  • ppFolder
    [out,retval] The returned handle to the IFolder2 object.

Return Value

The GetDefaultFolder 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
OlDefaultFolders
IFolder2