天佐.混沌钟  tianzuo.Hundun
软件许可证限制 software license restrictions
Loading...
Searching...
No Matches
tianzuo.HundunInterface.h
Go to the documentation of this file.
1
2// *@file tianzuo_HundunInterface.h
3// *@brief 天佐.混沌钟 (tianzuo.Hundun)
4// *@version 1.0
5// *@section LICENSE Copyright © 2003-2103 郑天佐 Corporation
6// *@author 郑天佐 (zhengtianzuo)
7// *@date 2024-1-1
8#pragma once
9
11#undef tianzuo_Hundun_lib
12#if defined(WIN32)
13#define tianzuo_Hundun_atr
14#if defined(tianzuo_Hundun_dllexport)
15#define tianzuo_Hundun_lib _declspec(dllexport)
16#else
17#define tianzuo_Hundun_lib
18#endif
19#else
20#define tianzuo_Hundun_atr __attribute__((visibility("default")))
21#define tianzuo_Hundun_lib
22#endif
23
33
35static const char* Hundun_error_code_strings_cn[6] = {
36 "成功",
37 "参数错误",
38 "解析错误",
39 "许可证文件或路径错误",
40 "日期已过",
41 "机器码不匹配"
42};
43
45static const char* Hundun_error_code_strings[6] = {
46 "success",
47 "parameter error",
48 "parse error",
49 "license filename error",
50 "out of date",
51 "machine id unmatched"
52};
53
61
65 public:
68
79 int check(const char* public_key_string, const char* license_file, int* days);
80
88 const char* get_machineid();
89};
90
93#ifdef __cplusplus
94extern "C"
95{
96#endif
97
108 tianzuo_Hundun_lib int tianzuo_Hundun_check(const char* public_key_string, const char* license_file, int* days);
109
118
119#ifdef __cplusplus
120}
121#endif
混沌钟模块类 for c++
Definition tianzuo.HundunInterface.h:64
int check(const char *public_key_string, const char *license_file, int *days)
~tianzuo_HundunInt()
Definition tianzuo.HundunInterface.h:67
tianzuo_HundunInt()
Definition tianzuo.HundunInterface.h:66
const char * get_machineid()
#define tianzuo_Hundun_lib
Definition tianzuo.HundunInterface.h:21
Hundun_error_code
Definition tianzuo.HundunInterface.h:25
@ Hundun_error_code_success
成功
Definition tianzuo.HundunInterface.h:26
@ Hundun_error_code_licensefile
许可证文件或路径错误
Definition tianzuo.HundunInterface.h:29
@ Hundun_error_code_unmatched
机器码不匹配
Definition tianzuo.HundunInterface.h:31
@ Hundun_error_code_outofdate
日期已过
Definition tianzuo.HundunInterface.h:30
@ Hundun_error_code_parameter
参数错误
Definition tianzuo.HundunInterface.h:27
@ Hundun_error_code_parse
解析错误
Definition tianzuo.HundunInterface.h:28
Hundun_license_type
Definition tianzuo.HundunInterface.h:55
@ Hundun_license_type_machinelimit
Definition tianzuo.HundunInterface.h:58
@ Hundun_license_type_none
Definition tianzuo.HundunInterface.h:56
@ Hundun_license_type_machinedatelimit
Definition tianzuo.HundunInterface.h:59
@ Hundun_license_type_datelimit
Definition tianzuo.HundunInterface.h:57
tianzuo_Hundun_lib const char * tianzuo_Hundun_get_machineid()
tianzuo_Hundun_lib int tianzuo_Hundun_check(const char *public_key_string, const char *license_file, int *days)