IStiDevice::GetLastErrorInfo method (sti.h)

The IStiDevice::GetLastErrorInfo method returns information about the last known error associated with a still image device.

Syntax

HRESULT GetLastErrorInfo(
  [out] STI_ERROR_INFO *pLastErrorInfo
);

Parameters

[out] pLastErrorInfo

Caller-supplied pointer to an STI_ERROR_INFO structure to receive error information.

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

The IStiDevice::GetLastErrorInfo method returns information about the most recent error by filling in the caller-supplied STI_ERROR_INFO structure. The method calls IStiUSD::GetLastErrorInfo, which is exported by vendor-supplied minidrivers.

Before calling IStiDevice::GetLastErrorInfo, clients of the IStiDevice COM interface must call IStillImage::CreateDevice to obtain an IStiDevice interface pointer, which provides access to a specified device.

Requirements

Requirement Value
Target Platform Desktop
Header sti.h (include Sti.h)