1234567891011121314151617181920212223242526272829303132333435 |
- #pragma once
- // The myPuts function writes a null-terminated string to
- // the standard output device.
- // The export mechanism used here is the __declspec(export)
- // method supported by Microsoft Visual Studio, but any
- // other export method supported by your development
- // environment may be substituted.
- #include <windows.h>
- #define EOF (-1)
- #ifdef __cplusplus // If used by C++ code,
- extern "C" { // we need to export the C interface
- #endif
- //初始化,
- __declspec(dllexport) int WINAPI Init();
- //释放资源
- __declspec(dllexport) int WINAPI Dispose();
- //获得当前最高温度
- __declspec(dllexport) int WINAPI GetStationMaxTemp(int units);
- __declspec(dllexport) int WINAPI GetStationMinTemp(int units);
- __declspec(dllexport) void WINAPI SetStationMaxTemp(int units, int temp);
- __declspec(dllexport) void WINAPI SetStationMinTemp(int units, int temp);
- __declspec(dllexport) void WINAPI SetPortToolSelectedTemp(int units, int temp, int cnt);
- __declspec(dllexport) int WINAPI GetPortToolSelectedTemp(int units, int cnt);
- __declspec(dllexport) int WINAPI GetPortToolActualTemp(int units, int cnt);
- __declspec(dllexport) int WINAPI GetPortToolSleepStatus(int units);
- #ifdef __cplusplus
- }
- #endif
|