Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FAQ: NTFS file functions 4

Status
Not open for further replies.

Glenn9999

Programmer
Jun 19, 2004
2,312
US
I got curious about a couple of things that exist on NTFS volumes, and decided to implement them in Delphi.

1) Alternate Data Streams
2) NTFS file-based compression.

Details and code in the FAQ link below.
faq102-7167

Measurement is not management.
 
The FAQ was edited:

I went through my documentation that I had from researching what was posted the first time and added constants for all the valid file attribute values within NTFS/other drives as currently documented.

Code:
{ new file attribute constants }
      faDevice            = $40;    // device - not used
      faNormal            = $80;    //  normal file - implied not any other attr
      faTemporary         = $100;   // temporary file
      faSparseFile        = $200;   // sparse file
      faReparsePoint      = $400;   // file with reparse point or symbolic link
      faCompressed        = $800;   // compressed file
      faOffline           = $1000;  // file is offline
      faNotContentIndexed = $2000;  // file is not content indexed
      faEncrypted         = $4000;  // encrypted file
      faVirtual           = $10000; // virtual file

Measurement is not management.
 
FAQ edited again (for the last time unless there's a bug):

1) Added information and code for creating sparse files.
2) Added information and code for creating hard links.

Measurement is not management.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top