INT32S CntrGetLatestEventCounterValue ( PTR_T DriverHandle, INT32U dwEventID, BYTE *pBuffer, INT32U dwLength);
Retrieve the stored input data of the specified counter event's most recent occurrence.
| Name | Direction | Range | Description |
| DriverHandle | Input | default | assigned by DRV_DeviceOpen |
| dwEventID | Input | default | counter event ID. |
| pBuffer | Output | default | pointer to the user buffer to receive the counter data. |
| dwLength | Input | default | Length of the user buffer. |
|
1. 0 |
Successful. |
|
2. InvalidDeviceHandle |
The DeviceHandle is NULL. |
|
3. InvalidInputParam |
The pBuffer or dwLength is invalid. |
|
4. InvalidEventType |
The Counter event ID(dwEventID) is not supported. |