From 6876a8645d08aec621a9eebfaa141346c2d525fa Mon Sep 17 00:00:00 2001 From: Warlock-Dalbaeb Date: Thu, 10 Aug 2017 10:07:38 +0700 Subject: [PATCH] Windows --- vanity.hpp | 24 +++++++++++++++++++----- vanitygen.cpp | 5 +++-- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/vanity.hpp b/vanity.hpp index 08e5dfd..1b83b86 100644 --- a/vanity.hpp +++ b/vanity.hpp @@ -10,9 +10,12 @@ #include #include #include - +#ifdef _WIN32 +#include +#endif // MARCO +#ifndef _WIN32 #define INIT_CPUS(count_cpu){\ cpu = CPU_ALLOC(count_cpu-1);\ if (cpu == NULL) {\ @@ -20,9 +23,18 @@ std::cout << "CPU_ALLOC error" << std::endl;\ return 1;\ }\ } - - - +#else +#warning don't testing +#define INIT_CPUS(count_cpu){\ + HANDLE process;\ + DWORD_PTR processAffinityMask;\ + for(int i=0; iGetIdentHash().ToBase32().c_str(),prefix) and !finded) @@ -171,3 +171,4 @@ TODO: return 0; } +