IStillImage::GetHwNotificationState method

The IStillImage::GetHwNotificationState method indicates whether applications will be notified when Still Image Device Events occur on a specified device.

Syntax


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

Parameters

pwszDeviceName [in]

Caller-supplied pointer to a string representing an internal device name, obtained by calling IStillImage::GetSTILaunchInformation or IStillImage::GetDeviceList.

pbCurrentState [out]

Receives TRUE if event notification is enabled, or FALSE otherwise.

Return value

If the operation succeeds, the method returns S_OK. Otherwise, it returns one of the STIERR-prefixed error codes defined in stierr.h.

Remarks

Before calling IStillImage::GetHwNotificationState, clients of the IStillImage COM interface must call IStillImage::StiCreateInstance to obtain an IStillImage interface pointer.

Requirements

Target platform

Desktop

Header

Sti.h (include Sti.h)

See also

IStillImage::EnableHwNotifications

 

 

Send comments about this topic to Microsoft

Show: