iStillImageW::GetHwNotificationState 方法 (sti.h)

IStillImage::GetHwNotificationState 方法指示在指定设备上发生静止图像设备事件时是否通知应用程序。

语法

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

参数

[in] pwszDeviceName

调用方提供的指向表示内部设备名称的字符串的指针,该字符串通过调用 IStillImage::GetSTILaunchInformationIStillImage::GetDeviceList 获取。

[out] pbCurrentState

如果启用事件通知,则接收 TRUE ,否则接收 FALSE

返回值

如果操作成功,该方法将返回S_OK。 否则,它将返回 stierr.h 中定义的以 STIERR 为前缀的错误代码之一。

注解

在调用 IStillImage::GetHwNotificationState 之前, IStillImage COM 接口的客户端必须调用 IStillImage::StiCreateInstance 以获取 IStillImage 接口指针。

要求

要求
目标平台 桌面
标头 sti.h (包括 Sti.h)

另请参阅

IStillImage::EnableHwNotifications

IStillImageW