Skip to content

ReadStatusByte

Reads a status byte from a device.

virtual HRESULT ReadStatusByte(short* psStatusByte) abstract;

psStatusByte

[in] Status byte read from the device.

Returns S_OK if successful, otherwise a failure HRESULT.

The following example demonstrates use of the ReadStatusByte function.

CoAcme4321.cpp
HRESULT Acme4321::Configure()
{
HRESULT hr = S_OK;
short sStatus;
hr = io.ReadStatusByte(&sStatus);
return hr;
}