Retreiving processor serial number
-
Hi All, Is there any function or API to retreive the processor serial number. :confused: Thanks Moz Tunis - Tunisia
I don't think there's an API function for that, but even if there was, I wouldn't tell you ;P Seriously, this is probably done with (inline) assembly. I suppose you emit an instruction to the CPU and you get the result in some registers. I don't know how though. I guess it's another extension of the CPUID instruction. If you use it, you should put the code inside try/catch blocks, because CPUs that don't support the instruction will produce an invalid opcode exception. Btw, why would you do that?
-
I don't think there's an API function for that, but even if there was, I wouldn't tell you ;P Seriously, this is probably done with (inline) assembly. I suppose you emit an instruction to the CPU and you get the result in some registers. I don't know how though. I guess it's another extension of the CPUID instruction. If you use it, you should put the code inside try/catch blocks, because CPUs that don't support the instruction will produce an invalid opcode exception. Btw, why would you do that?
I was also wondering the same thing. I remember seeing an example at www.codeguru.com for getting cpu properties using inline assembly but since i do not know assembly very well i could not understand it. Orcun Colak orcuncolak@yahoo.com