LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get programmatically the unique processor id from windows os?

Hi

 

Is it possible to get the processor id? If yes then how to get programmatically the unique processor id from windows os (It means serial number or something like that which is unique)? I think that for every processor of any make will have a unique identification number. So where that number is stored in the windows. Please don't ask why you want that? I don't want MAC address or any other hardware id instead of that.

 

Waiting for your esteemed response.

 

Thanks & Regards

Samuel J

0 Kudos
Message 1 of 4
(7,605 Views)

samuel James wrote:

Hi

 

Is it possible to get the processor id? If yes then how to get programmatically the unique processor id from windows os (It means serial number or something like that which is unique)? I think that for every processor of any make will have a unique identification number. So where that number is stored in the windows. Please don't ask why you want that? I don't want MAC address or any other hardware id instead of that.

 

Waiting for your esteemed response.

 

Thanks & Regards

Samuel J


Intel did a unique serial number in some Pentiums. Based on widespread objection they disabled it and removed that feature althogether from later models. AMD as far as I know learned from that and did not really add such a feature to their CPUs.

 

The way to read that serial number, although you would be hard pressed to find a machine nowadays with such a CPU, was to issue directly some CPU assembly instructions and read according CPU registers. The only way to do that is with assembly instructions, which might or might not have been privileged. If not privileged you could have created a DLL to read those and called it using the Call Library Node. If it would be a privileged CPU opcode you would have to create a device driver that can qeury this information from within the kernel.

 

But since modern CPUs do not have such a unique serial number this whole explanation is academical at best anyhow Smiley Happy.

 

Rolf Kalbermatter

Rolf Kalbermatter
My Blog
Message 2 of 4
(7,593 Views)

When installing LabVIEW on a machine, it comes up with a unique machine identifier.  If this is not a property of the chip, where does it come from and how can I read it programatically from within a LV application?

0 Kudos
Message 3 of 4
(6,882 Views)

This ID is a hash code created with a proprietary and unknown algorithme from machine information such as IP address, MAC address, motherboard serial number, disk volume ID, and most likely created in such a way that the code doesn't allow to go from the ID back to this individual informations, but at the same time does stay partly the same as long as some of the hardware stays the same.

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 4
(6,875 Views)