DrDetector.h 975 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #pragma once
  2. #ifndef DRDETECTOR_EXPORTS
  3. #ifdef _WIN64
  4. #ifdef _DEBUG
  5. #pragma comment(lib, "DrDetectorX64D.lib")
  6. #else
  7. #pragma comment(lib, "DrDetectorX64.lib")
  8. #endif
  9. #else
  10. #ifdef _DEBUG
  11. #pragma comment(lib, "DrDetectorD.lib")
  12. #else
  13. #pragma comment(lib, "DrDetector.lib")
  14. #endif
  15. #endif
  16. #endif
  17. #ifdef DRDETECTOR_EXPORTS
  18. #define DRDETECTOR_API __declspec(dllexport)
  19. #define DRDETECTOR_C_API extern "C" __declspec(dllexport)
  20. #else
  21. #define DRDETECTOR_API __declspec(dllimport)
  22. #define DRDETECTOR_C_API extern "C" __declspec(dllimport)
  23. #endif
  24. #include "ResDataObject.h"
  25. class DRDETECTOR_API DrDetector
  26. {
  27. public:
  28. DrDetector(void);
  29. virtual ~DrDetector(void);
  30. virtual bool Connect(ResDataObject &Connection);
  31. virtual bool Probe(ResDataObject &HardwareInfo);
  32. virtual bool SetWorkPath(const char *pWorkPath);
  33. virtual PVOID LoadLogicDevices();
  34. virtual void UnloadLogicDevices(PVOID p);
  35. virtual bool DisConnect();
  36. virtual bool OnNotify(HANDLE ExitNotify);
  37. };