Art: what a nice thing to say
Its now perfect
To any the haptek crew . MIDDLE FINGER. Cyber Jedi sorted ur code out. your welcome
lololol. Im teasing. Not Really
Any way ART , if you guys are happy like it is, ill just enjoy the finished version.
Just glad i could help
.
cyber jedi
Here was the final write
Were nesting mains , just like loops in loops for all us VB coderz
//int main()
//{
// SetProcessAffinityMask (GetCurrentProcess(),0); here were gonna line up all the cores like little indians. lol
//}
//void setNumCPUs(int num) we tell the Os , im overriding ur sht.
//{
// DWORD_PTR processAffinityMask;
// DWORD_PTR systemAffinityMask;
// if (GetProcessAffinityMask(GetCurrentProcess(), &processAffinityMask, &systemAffinityMask)) {
// Count up the number of cores available for the HapTek player. we only want Core Zero.
// int n = 1;
// for (int i = 1; i < sizeof(DWORD_PTR) * 1; i++) {
// if ((systemAffinityMask & ((DWORD_PTR)1 << i))) n++;
//}
// Heres where we Jack the first cpu
// This is the magic in this( I think uve heard that line before, (scrapers). in windows it points to zero. I know it says 1.
// BTW art, this in NO way effects any other application, they load out the way they are coded. Multi Threading there ass off
// DWORD_PTR newAffinityMask = 1; <<<<<<< Boom
// if (num < n) {
// int m = 1;
// for (int i = 1; i < sizeof(DWORD_PTR) * 1; i++) {
// if ((systemAffinityMask & ((DWORD_PTR)1 << i))) { These lines set the stage.
// newAffinityMask |= ((DWORD_PTR)1 << i);
// m++;
/// if (m == num) break; (newAffinityMask = 1) // boom, got ur assss
// ;}
// }
// newAffinityMask <<= (n - num);
// }
// else {
// newAffinityMask = systemAffinityMask; Here we are swapping 1 core and assigning 1 (processor) to this application, Were done.
// }
// Set new affinity mask with 1.
// SetProcessAffinityMask(GetCurrentProcess(), newAffinityMask); Load out the player with a single Core (processor)
//}
//}
Below image is as good as good gets