Partager via


IStiDevice ::GetLastErrorInfo, méthode (sti.h)

La méthode IStiDevice ::GetLastErrorInfo retourne des informations sur la dernière erreur connue associée à un appareil toujours image.

Syntaxe

HRESULT GetLastErrorInfo(
  [out] STI_ERROR_INFO *pLastErrorInfo
);

Paramètres

[out] pLastErrorInfo

Pointeur fourni par l’appelant vers une structure STI_ERROR_INFO pour recevoir des informations d’erreur.

Valeur de retour

Si l’opération réussit, la méthode retourne S_OK. Sinon, elle retourne l’un des codes d’erreur préfixés STIERR définis dans stierr.h<.

Remarques

La méthode IStiDevice ::GetLastErrorInfo retourne des informations sur l’erreur la plus récente en remplissant la structure STI_ERROR_INFO fournie par l’appelant. La méthode appelle IStiUSD ::GetLastErrorInfo, qui est exportée par les minidrivers fournis par le fournisseur.

Avant d’appeler IStiDevice ::GetLastErrorInfo, les clients de l’interface IStiDevice COM doivent appeler IStillImage ::CreateDevice pour obtenir un pointeur d’interface IStiDevice, qui fournit l’accès à un appareil spécifié.

Exigences

Exigence Valeur
plateforme cible Bureau
d’en-tête sti.h (include Sti.h)