This CLSID returns the fuel pressure relative to the ambient atmospheric pressure.
Fuel pressure
Read, shareable or exclusive
| Type: | VT_UI2 (unsigned short integer) |
| Low: | 0 |
| High: | 765 |
None
| Type: | VT_UI2 (unsigned short integer) |
| Measurement: | VIOMEASUREMENT_GAGEPRESSURE |
| Units: | VIOUNITS_KILOPASCALSGAGE |
API device objects expect the following data types and sizes when sending data to and from the mini-drivers:
None
| Type: | USHORT * |
| Size: | 2 bytes |
| Description: | Fuel pressure in kilopascals, relative to ambient atmospheric pressure |
HRESULT hr;
IVIO_Device *pFuelPressure;
VARIANT vDeviceData;
USHORT usGagePressure;
//Create an instance of the Fuel Pressure device and get its
//IVIO_Device interface.
hr = CoCreateInstance(CLSID_VIO_FUEL_PRESSURE, NULL,
CLSCTX_INPROC_SERVER, IID_VIODEVICE,
&pFuelPressure);
//Ask the device for the current fuel pressure.
pFuelPressure->GetData(&vDeviceData, 3000);
//Fetch the fuel pressure, in kilopascals, from the VARIANT.
usGagePressure = vDeviceData.uiVal;
//Release the reference to the interface.
pFuelPressure->Release();