Good catch. Here is the my code that does not involve CrystalCPUID.
h_thread=GetCurrentThread();
printf("Reading Original MSR Register Status:\n");
core_mask=1;//0001 for core 1
SetThreadAffinityMask(h_thread, core_mask);
Set core_mask at 2, 4, 8 for core 2 ,3, and 4, respectively to Read/Write MSR values to each core.
Bookmarks