Log in

View Full Version : Harddisk serial lock


Medic
October 20th, 2004, 04:17
Hi,

Am working on a prog that has a serial number which is based on the harddisk serial for vol c:

Anyone know if there is a standard calls that I could watch to see when the HDD serial is fetched?

Had a good look round the forum and web and found that most developers write their own code snipet to fetch the harddisk serial.

Thanks,

Medic

klier
October 20th, 2004, 05:22
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/getvolumeinformation.asp
Regards,

Medic
October 20th, 2004, 06:01
Hi klier,

Thanks for the link.

Sadly that method isn't listed in the Import Function list for this prog. Will try and find out if there is another function that does the same thing.

Cheers,

Medic

klier
October 20th, 2004, 06:52
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/deviceiocontrol.asp
Regards,

dELTA
October 20th, 2004, 07:41
Quote:
Sadly that method isn't listed in the Import Function list for this prog.
It might very well just be dynamically imported, just to make it a little bit harder to hook...

Medic
October 20th, 2004, 09:23
Thanks,

Filemon holds the answer!

Undocumented function of NTDLL is being called:

FileFsVolumeInformation

Will now try and discover what is calling it!!

Thanks again.

Medic

klier
October 21st, 2004, 06:39
Good!
my guess is still the first.
Regards,