Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obtain Hard Drive Serial Number
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00475301
Message ID:
00486699
Views:
22
>>I want to go one step further and actually *set* the serial number through the API. Have you ever seen that done? A software problem just jumped into my lap where the app registration was linked to the HD serial number (I hate that) and now that the HD contents were moved to a newer larger drive, the app won't run. :( I know the old serial number, so if I can just change it on this drive I'd be set...
>
>Whoops, slight correction
>
>SetVolumeLabel() is as close as you can come. The API provides no functionality to directly set the serial number. In order to do so, you'd have to access a of ROM BIOS interrupt call. Specifically, Int 21h Function 440Dh Minor Code 46h for FAT32. In order to do so, I think you'd have to write a virtual device driver in C.
>
>Int 21h Function 440Dh Minor Code 66h returns the serial number.

I don't think he is talking about the actual hardware/firmware serial number, but the volume serial number. You can have up to 4 or more if you have that many partitions. I believe you would only need to do a low level write to the fat (or nt equivelent) of the drive to do that. Partition Magic might have the ability to do something like that in its current version. I know you used to be able to do that with norton utilities in win95 etc.
Cy Welch
Senior Programmer/Analyst
MetSYS Inc
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform