English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm given an exe file that when called returns the hard disk serial number. I was told that the number is unique for every system. Therefore it cannot be volume serial number. It is an eight digit alphanumeric number.
The JAVA program that i'm designing calls this exe for licensing purpose. (The software can be installed in only one system).
Everything works fine in a normal system. When i tried in a system that had RAID drive (more than one hard disks clustered), the exe is returning "null". This is my problem.
I need a way to find out the serial number of a RAID disk. I dont know the code of that exe. I have only the binary.

2006-12-12 20:35:47 · 1 answers · asked by Indhu 1 in Computers & Internet Programming & Design

1 answers

It's been a while since I've done this, but my main guess is that it enumerates the devices and queries each one for properties. Look into device enumeration under Windows (presuming you mean Windows).

This would be a C++ call, although you could put it in a JINI wrapper if you need to call it from Java

On edit: Although if you're looking for a unique ID, most companies take the network card as a baseline, which is supposed to be unique, for their UIDs. You could use the MAC ID number if you wanted..

2006-12-12 20:45:59 · answer #1 · answered by T J 6 · 0 0

fedest.com, questions and answers