Click here to Skip to main content
15,890,438 members

Comments by nilam Kasalkar (Top 7 by date)

nilam Kasalkar 16-Aug-12 4:56am View    
How to do this in MAC OS?
Please help.
nilam Kasalkar 9-Aug-12 9:11am View    
That not support
nilam Kasalkar 9-Aug-12 7:24am View    
I need unique machine id
nilam Kasalkar 9-Aug-12 6:54am View    
How to use Win32_Processor class in c++ to retrieve cpu number
nilam Kasalkar 9-Aug-12 6:31am View    
It return true or false for processor serial number.
I write code
int info[4] = { -1 };

__cpuid(info, 0);
if (info[0] < 1)
{
CAlert::InformationAlert("Not");
}

// Up to you...you do not need to mask results and you may use
// features bits "as is".
__cpuid(info, 1);
int family = info[0] & 0xf00;
int features = info[3] & 0xf000;

std::stringstream id;
id << std::hex << std::setw(4) << std::setfill('0') << family << features;

But i dont get