Partager via


IStillImageW ::GetHwNotificationState, méthode (sti.h)

La méthode IStillImage ::GetHwNotificationState indique si les applications seront averties lorsque événements d’appareil Still Image se produisent sur un appareil spécifié.

Syntaxe

HRESULT GetHwNotificationState(
  [in]  LPCWSTR pwszDeviceName,
  [out] BOOL    *pbCurrentState
);

Paramètres

[in] pwszDeviceName

Pointeur fourni par l’appelant vers une chaîne représentant un nom d’appareil interne, obtenu en appelant IStillImage ::GetSTILaunchInformation ou IStillImage ::GetDeviceList.

[out] pbCurrentState

Reçoit TRUE si la notification d’événement est activée ou FALSE sinon.

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

Avant d’appeler IStillImage ::GetHwNotificationState, les clients de l’interface COM IStillImage doivent appeler IStillImage ::StiCreateInstance pour obtenir un pointeur d’interface IStillImage.

Exigences

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

Voir aussi

IStillImage ::EnableHwNotifications

IStillImageW