共用方式為


IStillImageW::GetHwNotificationState 方法 (sti.h)

IStillImage::GetHwNotificationState 方法會指出應用程式是否會在指定的裝置上發生 靜止影像裝置 事件時收到通知。

語法

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

參數

[in] pwszDeviceName

呼叫端提供的字串指標,代表內部裝置名稱,方法是呼叫 IStillImage::GetSTILaunchInformationIStillImage::GetDeviceList取得。

[out] pbCurrentState

如果已啟用事件通知,或 FALSE則會收到 TRUE

傳回值

如果作業成功,方法會傳回S_OK。 否則,它會傳回 stierr.h中定義的其中一個 STIERR 前置詞錯誤碼。

言論

呼叫 IStillImage::GetHwNotificationState之前,IStillImage COM 介面的客戶端必須呼叫 IStillImage::StiCreateInstance,才能取得 IStillImage 接口指標。

要求

要求 價值
目標平臺 桌面
標頭 sti.h (include Sti.h)

另請參閱

IStillImage::EnableHwNotifications

IStillImageW