#pragma once #include "key.h" #include #include #include #include class Registration { public: typedef enum { REG_SUCCESS, REG_TRIAL, REG_FAIL, } RegType; public: Registration(); ~Registration(); void Init(); RegType CheckReg(time_t time); GLuint GetSN(char* strcode); RegType CheckRegKey(std::string reg_file); private: unsigned int m_TrailYear; unsigned int m_TrailMonth; unsigned int m_TrailDay; const unsigned long DATE_OFFSET = 0x1000; key m_key; const std::string TRAIL_FILE = "libhbd.dll"; };