-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify.h
More file actions
42 lines (33 loc) · 928 Bytes
/
verify.h
File metadata and controls
42 lines (33 loc) · 928 Bytes
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
/*
* @Author: ShiyiTang
* @Date: 2024-04-22 11:20:34
* @FilePath:
* @Description: verify interface
*/
#pragma once
#ifndef WIN32
#define WIN32 1
#endif // !WIN32
#if WIN32
#define VERIFY_API extern "C" __declspec(dllexport)
#define SHA256_HASH_SIZE 32
#define Reg_Path "Software\\hardware"
#include <cassert>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <stdio.h>
#include <Windows.h>
#include "hmac_sha256.h"
using namespace std;
extern string m_Serial;
extern string key;
BOOL Write_Regedit(HKEY Reg_Root, const char* lpszFileName, const char* lpszValueName); //дע²á±í
string Red_Regedit(const std::string& key); //¶Á×¢²á±í
string Encryption_HMAC_SHA256(const char* serial);
VERIFY_API char* Add();
VERIFY_API bool VerifyActivationCode(const char* activation = "", const char* serial = "");
VERIFY_API bool VerifyIsTheDevAct(const char* device);
#endif