Link to home
Start Free TrialLog in
Avatar of pbranagan
pbranagan

asked on

absolute disk positiion of files

I'm looking for a pice of code to get the absolute disk position of a file in windows 95 using visual C++ 5.
Avatar of trestan
trestan
Flag of Canada image

The function "GetFileInformationByHandle" can serve your purpose.
The file information is contained in the structure "BY_HANDLE_FILE_INFORMATION" in which a data member "dwVolumeSerialNumber" specifies the serial number of the volume that contains the file. I think it is exactely what you want.
Please check the online help for more information.


Avatar of pbranagan
pbranagan

ASKER

dwVolumeSerialNumber is really not what i'm looking for.
I need a value that will identify a file. ie.. if the file is copied or moved to a different part of the pc then this number will have changed. (i'm thinking the absolute disk position)
I think you need to read the FAT information of the disk. It is a big topic. Please refer to online help for more information:
Platform,DSK... -> Windows Base Services -> Windows 95 Features


ASKER CERTIFIED SOLUTION
Avatar of PeterM070698
PeterM070698

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial