Metodo IStiDevice::GetLastErrorInfo (sti.h)
Il metodo IStiDevice::GetLastErrorInfo restituisce informazioni sull'ultimo errore noto associato a un dispositivo ancora immagine.
Sintassi
HRESULT GetLastErrorInfo(
[out] STI_ERROR_INFO *pLastErrorInfo
);
Parametri
[out] pLastErrorInfo
Puntatore fornito dal chiamante a una struttura STI_ERROR_INFO per ricevere informazioni sull'errore.
Valore restituito
Se l'operazione ha esito positivo, il metodo restituisce S_OK. In caso contrario, restituisce uno dei codici di errore con prefisso STIERR definiti in stierr.h<.
Osservazioni
Il metodo IStiDevice::GetLastErrorInfo restituisce informazioni sull'errore più recente compilando la struttura di STI_ERROR_INFO fornita dal chiamante. Il metodo chiama IStiUSD::GetLastErrorInfo, esportato da minidriver forniti dal fornitore.
Prima di chiamare IStiDevice::GetLastErrorInfo, i client dell'interfaccia IStiDevice COM devono chiamare IStillImage::CreateDevice per ottenere un puntatore di interfaccia IStiDevice, che fornisce l'accesso a un dispositivo specificato.
Fabbisogno
Requisito | Valore |
---|---|
piattaforma di destinazione | Desktop |
intestazione | sti.h (include Sti.h) |