JBC.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. // The myPuts function writes a null-terminated string to
  3. // the standard output device.
  4. // The export mechanism used here is the __declspec(export)
  5. // method supported by Microsoft Visual Studio, but any
  6. // other export method supported by your development
  7. // environment may be substituted.
  8. #include <windows.h>
  9. #define EOF (-1)
  10. #ifdef __cplusplus // If used by C++ code,
  11. extern "C" { // we need to export the C interface
  12. #endif
  13. //初始化,
  14. __declspec(dllexport) int WINAPI Init();
  15. //释放资源
  16. __declspec(dllexport) int WINAPI Dispose();
  17. //获得当前最高温度
  18. __declspec(dllexport) int WINAPI GetStationMaxTemp(int units);
  19. __declspec(dllexport) int WINAPI GetStationMinTemp(int units);
  20. __declspec(dllexport) void WINAPI SetStationMaxTemp(int units, int temp);
  21. __declspec(dllexport) void WINAPI SetStationMinTemp(int units, int temp);
  22. __declspec(dllexport) void WINAPI SetPortToolSelectedTemp(int units, int temp, int cnt);
  23. __declspec(dllexport) int WINAPI GetPortToolSelectedTemp(int units, int cnt);
  24. __declspec(dllexport) int WINAPI GetPortToolActualTemp(int units, int cnt);
  25. __declspec(dllexport) int WINAPI GetPortToolSleepStatus(int units);
  26. #ifdef __cplusplus
  27. }
  28. #endif