Click or drag to resize

ReadStatusByte

Reads a status byte from a device.

virtual HRESULT ReadStatusByte(short* psStatusByte) abstract;
Parameters
psStatusByte

[in] Status byte read from the device.

Return Value

Returns S_OK if successful, otherwise a failure HRESULT.

Example

The following example demonstrates use of the ReadStatusByte function.

C++
// CoAcme4321.cpp
HRESULT Acme4321::Configure()
{
  HRESULT hr = S_OK;

  short sStatus;
  hr = io.ReadStatusByte(&sStatus);

  return hr;
}

Download a complete CHM version of this documentation here.