SetFileTime Demo 1

By BrandsPatch

Freeware 06 Nov 2008

In category

Code Samples > Samples > OS

Description

When digital copies of documents, photographs and transparencies are made they end up with the wrong timestamp - the instant when the file was actually created. Here we demonstrate how the Windows SetFileTime function can be used to redress the problem.

Note that the range of valid timestamps that can be assigned depends on the disk file system in use. FAT and FAT32 only allow stamps in the range 01/01/1980 to 31/12/2099. NTFS is more generous but even so Windows Explorer may be unable to display timestamps outside the 1980-2099 range.

Informations

  • Status: Fully functional
  • Source: FW
  • Size: 265 886kB

Platforms:

  • C++ Builder 5
  • C++ Builder 6
  • Delphi 3
  • Delphi 4
  • Delphi 5

Downloads