Previous Next

IStiUSD::RawWriteCommand

A still image minidriver's IStiDevice::RawWriteCommand method sends command information to a still image device.

STDMETHODIMP
  RawWriteCommand(
    LPVOID  lpBuffer,
    DWORD  nNumberOfBytes,
    LPOVERLAPPED  lpOverlapped
    );

Parameters

lpBuffer
Caller-supplied pointer to a buffer containing data to be sent to the device.
nNumberOfBytes
Caller-supplied number of bytes to be written. This is the number of bytes in the buffer pointed to by lpBuffer.
lpOverlapped
Optional, caller-supplied pointer to an OVERLAPPED structure (described in the Platform SDK documentation).

Return Value

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

Headers

Declared in stiusd.h. Include stiusd.h.

Comments

It is only necessary to call IStiUSD::RawWriteCommand if commands and data are written to a device by different methods. For other devices, IStiUSD::RawWriteData can be used for both commands and data. If the call is not implemented, it must return STIERR_UNSUPPORTED.

Implementation of this method, along with the meaning of buffer contents, are vendor-defined.

See Also

IStiDevice::RawWriteCommand