HrCreateOfflineObj
Hace referencia a: Outlook 2013 | Outlook 2016
Crea un objeto sin conexión MAPI que usa el proveedor y el almacén para notificar a MAPI cuando el objeto está en línea y sin conexión,
Propiedad | Valor |
---|---|
Exportado por: |
Msmapi32.dll |
Implementado por: |
Outlook |
Llamado por: |
Cliente |
STDAPI HrCreateOfflineObj(
ULONG ulFlags,
MAPIOFFLINE_CREATEINFO* pCreateInfo,
IMAPIOfflineMgr** ppOffline
);
Parameters
ulFlags
[in] Debe ser 0.
pCreateInfo
[in] Puntero a una estructura MAPIOFFLINE_CREATEINFO que contiene la información necesaria para crear el objeto sin conexión.
ppOffline
[out] Puntero a la interfaz IMAPIOfflineMgr .
Valor devuelto
Ninguno.
HrOpenOfflineObj
Ejemplo
// create/get global offline object to use as parent.
ZeroMemory(&OfflineCreateInfo, sizeof(OfflineCreateInfo));
OfflineCreateInfo.ulSize = sizeof(OfflineCreateInfo);
OfflineCreateInfo.ulCreateFlags = 0;
OfflineCreateInfo.pwszProfileName = pszProfileName;
OfflineCreateInfo.ulCapabilities = ulCapabilities;
OfflineCreateInfo.pGUID = &GUID_GlobalState;
OfflineCreateInfo.pInstance = NULL;
OfflineCreateInfo.pParent = NULL;
OfflineCreateInfo.pMAPISupport = NULL;
OfflineCreateInfo.pAggregateInfo = NULL;
OfflineCreateInfo.pConnectInfo = NULL;
// Create an offline object for the provider with global as parent.
ZeroMemory(&OfflineCreateInfo, sizeof(OfflineCreateInfo));
OfflineCreateInfo.ulSize = sizeof(OfflineCreateInfo);
OfflineCreateInfo.ulCreateFlags = 0;
OfflineCreateInfo.pwszProfileName = pszProfileName;
OfflineCreateInfo.ulCapabilities = ulCapabilities;
OfflineCreateInfo.pGUID = pGuid;
OfflineCreateInfo.pInstance = pInstance;
OfflineCreateInfo.pParent = pGlobalOfflineMgr;
OfflineCreateInfo.pMAPISupport = NULL;
OfflineCreateInfo.pAggregateInfo = NULL;
OfflineCreateInfo.pConnectInfo = NULL;
// create store offline object which aggregates with the store object and has provider offline object as parent.
ZeroMemory(&OfflineCreateInfo, sizeof(OfflineCreateInfo));
OfflineCreateInfo.ulSize = sizeof(OfflineCreateInfo);
OfflineCreateInfo.ulCreateFlags = 0;
OfflineCreateInfo.pwszProfileName = pszProfileName;
OfflineCreateInfo.ulCapabilities = ulCapabilities;
OfflineCreateInfo.pGUID = NULL;
OfflineCreateInfo.pInstance = NULL;
OfflineCreateInfo.pParent = m_pProviderOfflineMgr;
OfflineCreateInfo.pMAPISupport = pMAPISup;
OfflineCreateInfo.pAggregateInfo = &AggregateInfo;
OfflineCreateInfo.pConnectInfo = NULL;
ZeroMemory(&AggregateInfo, sizeof(AggregateInfo));
AggregateInfo.ulSize = sizeof(AggregateInfo);
AggregateInfo.pOuterObj = (IMsgStore *)this;
AggregateInfo.pRefTrackRoot = NULL;