Share via


IItem::get_DefaultItemType

4/8/2010

The get_DefaultItemType method gets a PIM item's type.

Syntax

HRESULT get_DefaultItemType(
  int * polItem
)

Parameters

  • polItem
    [out] Reference to the PIM item type. One of the OlItemType enumeration values.

Return Value

This method returns the standard values HRESULT_FROM_WIN32(GetLastError()), E_INVALIDARG, and S_FAIL, as well as the following:

  • S_OK
    The method completed successfully.

Remarks

You can use IItem::get_DefaultItemType for all folder objects except the Infrared folder object, as well as PIM item objects.

Requirements

Header pimstore.h
Library Pimstore.lib
Windows Mobile Pocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later

See Also

Reference

IItem
IFolder::get_DefaultItemType

Other Resources