Sha256: b0486febce9c971f922fcf14e6261aae44c3b5d393df6f271015d27e83c50fe0
Contents?: true
Size: 1.08 KB
Versions: 17
Compression:
Stored size: 1.08 KB
Contents
#pragma once #include "SensorApi.h" #include "RhoStd.h" namespace sensormodule { class CSensorApiDll { public: CSensorApiDll(void); ~CSensorApiDll(void); DWORD SensorOpen(OPEN_MODE eMode, SENSOR_INFO_T& ptSensorInfo); DWORD SensorClose(); DWORD SensorRegisterDataNotification(NOTIFIER_TYPE eNotifierType, LPVOID lpNotifier, DWORD dwNotifyThreshold); DWORD SensorDeregisterDataNotification(); DWORD SensorStartSampling(); DWORD SensorStopSampling(); DWORD SensorGetProperty(SENSOR_PROPERTY eProperty, LONG &nValue); DWORD SensorSetProperty(SENSOR_PROPERTY eProperty, LONG nValue); bool SensorAPIsPresent() const; operator HANDLE() const; // static helpers static DWORD Enumerate(rho::Vector<SENSOR_TYPE>& sensorList); static void ReadyForOpen(SENSOR_TYPE sensorType, SENSOR_INFO_T& ptSensorInfo); protected: DWORD LoadModule(); DWORD UnloadModule(); private: CSensorApiDll(const CSensorApiDll&); CSensorApiDll& operator=(const CSensorApiDll&); HMODULE m_hSensorLibrary; HANDLE m_hSensor; }; } // namespace ends
Version data entries
17 entries across 17 versions & 2 rubygems