Device_API.h 571 B

123456789101112131415161718192021
  1. #pragma once
  2. #ifdef DEVICE_EXPORTS
  3. #define DEVICE_API _declspec(dllexport)
  4. #else
  5. #define DEVICE_API _declspec(dllimport)
  6. #endif
  7. enum DEVICE_RST
  8. {
  9. DEVICE_RST_OK = 0, //正常返回
  10. DEVICE_RST_FAULT = 1, //错误返回
  11. DEVICE_RST_NOTEXIST = 2, //不存在
  12. DEVICE_RST_NOTSURPPORT = 3 //不支持
  13. };
  14. typedef void (CALLBACK *pCallbackfun)(wchar_t* wszName,wchar_t* wszGroup,int nType,wchar_t* wszValue);
  15. extern "C" DEVICE_API int Init(pCallbackfun pfun);
  16. extern "C" DEVICE_API int Exit();
  17. extern "C" DEVICE_API int Setup(wchar_t* wszName,wchar_t* wszGroup,wchar_t* wszValue);