Click to See Complete Forum and Search --> : Volume Serial Number - diskette


tripi
April 23rd, 2003, 02:49 AM
Hi,

I need to get and change the volume serial number a diskette. I'm developing a program written in ANSI C (must be ANSI C, I can`t use visual languages). Is there any function or library?

Thanks!

Kheun
April 23rd, 2003, 04:54 AM
For Windows, try SetVolumeLabel("A:\", "VolumeLabel").

tripi
April 23rd, 2003, 08:36 AM
I`m not refering to Volume Label, I need to access Volume Serial Number of A:\

thx!

Mick
April 23rd, 2003, 12:48 PM
The volume serial number is part of the boot sector stored in the extended BPB. For NTFS this is a LONGLONG at byte offset 0x48. Try a google search for what you are trying to accomplish, I have seen sample code posted in the past for changing the value.