mID.h
1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef MID_H_
#define MID_H_
////////////////////////////////////////////////////////////
//function: getMIDKeyfile()
//param: NULL
//return: NULL
//remark: get key.nlpr from target computer
////////////////////////////////////////////////////////////
void getMIDKeyfile();
////////////////////////////////////////////////////////////
//function: checkMIDbyKeyfile()
//param: keyname: key.nlpr
//return: 1: success -1:failure
//remark: check license by key.nlpr
////////////////////////////////////////////////////////////
int checkMIDbyKeyfile(const char * keyname);
////////////////////////////////////////////////////////////
//function: convertMID
//param: keyname: key.nlpr
//return: NULL
//remark: convert key.nlpr to key.txt, and get the md5
////////////////////////////////////////////////////////////
void convertMID(const char * keyname);
////////////////////////////////////////////////////////////
//function: checkMID
//param: buf: md5
//return: 1: success -1:failure
//remark: check license by md5
////////////////////////////////////////////////////////////
int checkMID(unsigned short buf[8]);
////////////////////////////////////////////////////////////
//function: checkMIDkeySet
//param: NULL
//return: 1: success -1:failure
//remark: check license by md5 Set
////////////////////////////////////////////////////////////
int checkMIDkeySet();
////////////////////////////////////////////////////////////
//function: checkTime
//param: NULL
//return: 1: success -1:failure
//remark: check by date
////////////////////////////////////////////////////////////
int checkTime();
#endif