Metodo ISyncMgrHandler::GetHandlerInfo (syncmgr.h)
Ottiene le proprietà che descrivono il gestore.
Sintassi
HRESULT GetHandlerInfo(
[out] ISyncMgrHandlerInfo **ppHandlerInfo
);
Parametri
[out] ppHandlerInfo
Tipo: ISyncMgrHandlerInfo**
Quando questo metodo restituisce, contiene l'indirizzo di un puntatore a un'istanza dell'interfaccia ISyncMgrHandlerInfo che fornisce l'accesso alle proprietà del gestore.
Valore restituito
Tipo: HRESULT
Se questo metodo ha esito positivo, restituisce S_OK. In caso contrario, restituisce un codice di errore HRESULT .
Commenti
Se questo metodo ha esito negativo, il gestore viene ancora visualizzato nella cartella Sync Center e Sync Center continua a richiamarlo, ma i valori predefiniti vengono usati per tutte le proprietà.
ISyncMgrHandler::GetHandlerInfo, insieme a ISyncMgrHandler::GetName, sostituisce GetHandlerInfo precedente.
Esempio
Nell'esempio seguente viene illustrata un'implementazione di questo metodo.
STDMETHODIMP CMyDeviceHandler::GetHandlerInfo(
__out ISyncMgrHandlerInfo **ppHandlerInfo)
{
*ppHandlerInfo = NULL;
HRESULT hr = QueryInterface(IID_ISyncMgrHandlerInfo,
(void **) ppHandlerInfo);
return hr;
}
Requisiti
Requisito | Valore |
---|---|
Client minimo supportato | Windows Vista [solo app desktop] |
Server minimo supportato | Windows Server 2008 [solo app desktop] |
Piattaforma di destinazione | Windows |
Intestazione | syncmgr.h |