GrpcPrint/PrintS/Registration/Registration.h
2024-03-19 17:45:12 +08:00

34 lines
580 B
C++

#pragma once
#include "key.h"
#include <string>
#include <GL/mesa_gl.h>
#include <GL/glu.h>
#include <GL/khronos_glext.h>
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";
};