Changing Volume Serial Numbers (not Volume Label)

  • Thread starter Thread starter brad
  • Start date Start date
B

brad

Hi Everyone,

I want to be able to change Volume Serial Numbers from within a program. I
know about Mark Russinovich's VOLUMEID.EXE utility from his sysinternals.com
website, but I'm trying to figure out how to do it in code. Also, I'd like
to be able to do it on Win9x as well as Win2k/XP.

I have been able to track down FSCTL_GET_NTFS_VOLUME_DATA for retrieving NT
volume serial numbers via DeviceIOControl, but I'm looking for a way to
change the Volume ID, i.e. rewrite this data. There must be a way, but it
appears to be undocumented.

Does anyone know how to do this?

Thanks,
Brad
 
Back
Top