IStiDevice::GetLastError method (sti.h)

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

Syntax

HRESULT GetLastError(
  [out] LPDWORD pdwLastDeviceError
);

Parameters

[out] pdwLastDeviceError

Caller-supplied pointer to a buffer in which the error code will be stored.

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 IStiDevice::GetLastError, 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)