#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