#define USER_COUNT 32
DWORD KEYSYSTEM()
{
using SystemInfoFn = void(WINAPI*)(LPSYSTEM_INFO);
SystemInfoFn oSystemInfo = nullptr;
SYSTEM_INFO pInformation;
memset((void*)&pInformation, 0, sizeof(SYSTEM_INFO));
oSystemInfo = reinterpret_cast<SystemInfoFn>(GetProcAddress(GetModuleHandleA("kernel32.dll"), "GetSystemInfo"));
oSystemInfo(&pInformation);
return (pInformation.dwNumberOfProcessors + 3543 * pInformation.dwProcessorType * 7 + pInformation.wProcessorRevision);
}
DWORD key[USER_COUNT]
{
14534417,
45456546,
43543534,
54634564,
67567567
};
bool Check()
{
DWORD sKey = KEYSYSTEM();
bool bret = false;
for (size_t i = 0; i < USER_COUNT; i++)
{
if (key[i] == sKey)
{
bret = true;
break;
}
}
return bret;
}