09-17-2010 05:32 AM
09-17-2010 06:02 AM
I rember this from some time ago. If you use 32 bits system. You will need to do a call to kernel32.dll. And the function is GetVolumeInformationA
http://forums.ni.com/t5/LabVIEW/Call-to-WinAPI-Kernel32-dll-doesn-t-work-in-runtime/m-p/121097 It may do the trick for you
09-17-2010 06:04 AM
On Win, this information should be stored in the registry. So you can read it using the build-in registry functions.
Felix
09-17-2010 06:21 AM
Whether the volume serial number will be unique ? My requirement is to have a unique identification, of the PC in which I am running my program
09-17-2010 07:12 AM
@COq Rouge wrote:
I rember this from some time ago. If you use 32 bits system. You will need to do a call to kernel32.dll. And the function is GetVolumeInformationA
http://forums.ni.com/t5/LabVIEW/Call-to-WinAPI-Kernel32-dll-doesn-t-work-in-runtime/m-p/121097 It may do the trick for you
Note: its Volume Serial Number, not Hard Drive Serial Number. Obtaining real HDD Serial Number a bit more complicated...
Andrey.