DeviceDriver.h 715 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #pragma once
  2. #include "LogicDevice.h"
  3. #include "DriverObject.h"
  4. #include "DeviceBUS.h"
  5. #ifdef DRIVERAPI_EXPORTS
  6. #define DRIVERAPI_API __declspec(dllexport)
  7. #else
  8. #define DRIVERAPI_API __declspec(dllimport)
  9. #endif
  10. class DRIVERAPI_API DeviceBUS;
  11. class DRIVERAPI_API DeviceDriver
  12. {
  13. protected:
  14. public:
  15. DeviceBUS *m_pBus;
  16. DriverObject *m_pDrv;
  17. ResDataObject m_Resource;
  18. DeviceDriver(void);
  19. virtual ~DeviceDriver(void);
  20. void Clear();
  21. bool LoadDriver(const wchar_t *pDllPath,ResDataObject &Connection);
  22. bool UnLoadDriver();
  23. void NotifyDataArrived();
  24. size_t GetLogicDeviceCount();
  25. void GetLogicDevice(DWORD Idx,LogicDevice *pDev);
  26. //loading the LogicDevice to the driverTree (in the SsdtAPI)
  27. };