Sorry for not checking back here sooner. I only rarely pop over to the 2k forum. Anway, got Steve's PM and...
Steve already explained about the fact that the number you are getting back when issuing the GetVolumeInformation API is the decimal eqivalent of the number you see doing something like the Dir command (ie. a hex number in the form xxxx-xxxx). This all is what I was talking about in my first post, that the GetVolumeInformation does not return the real "hardware" serial number. To get that number you need to issue something like the low level ATA command Identify Drive.
The number that GetVolumeInformation returns is for a partition. This number can be set and reset in a variety of ways. Like I said before, just formatting a drive changes the number. With a format the number gets set/assigned randomly. You can also force the number to a specific one programmatically. An example of a utility out there that does just this is VolumeID from www.sysinternals.com.
I kinda figured you weren't relying on the hardware serial number, but wasn't sure. Anyway, using the number returned by GetVolumeInformation is not really a reliable means of providing security in your software.
Last edited by DrMDJ; November 19th, 2002 at 11:59 PM.
Please remember to post back whether your problem is resolved or
not, so that others may gain from the knowledge.