IPOutlookApp2::GetItemFromOidEx

Windows Mobile SupportedWindows Embedded CE Not Supported

9/8/2008

The GetItemFromOidEx método obtém um PIM item (tanto um compromisso, contato ou tarefa), fornecido exclusivo é Object Identifier (OID).

Syntax

HRESULT GetItemFromOidEx(
  ULONG oidPIM,
  ULONG ulFlags,
   IItem ** ppItem
)

Parameters

  • oidPIM
    [no] Identificador exclusivo do o objeto.
  • ulFlags
    [no] Não usado. Deve ser 0.
  • ppItem
    [out] Uma referência para o objeto IItem Gerenciador de informações pessoais.

Return Value

This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED GPSGetPosition, e E_FAIL, as well as o seguinte.

  • S_OK
    The method completed successfully.

Remarks

The GetItemFromOidEx método também pode ser é usado para pastas get.

Exemplo de código

O seguinte exemplo de código demonstra como usar GetItemFromOidEx.

Observação

Para tornar o exemplo de código mais fácil para ler, verificação de segurança e manipulação de erro não estão incluídos.This code example should not be used in a release configuration unless it has been modified to include them.

HRESULT GetItemFromOidExExample(IPOutlookApp2 *pPoom, long lOid, IItem **ppItem)
{
    HRESULT hr = E_FAIL;

    hr = pPoom->GetItemFromOidEx(lOid, 0, ppItem);

    return hr;
}

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

IPOutlookApp2
IPOutlookApp
Pocket Outlook Object Model Interfaces

Other Resources

Pocket Outlook Object Model Enumerations