Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Below is the code to call SetFileAttributes() to make C:\AREADING.TAB a read-only file with the archive bit set.  The attributes are set, and then GetFileAttributes() is called to prove that the

...

Note how the values for the attribute bits are added.  The attribute value returned from SetFileAttributes() is 33 (32 for the archive bit, plus 1 for the read-only bit).

...

The code above will not run until the declarations for GetFileAttributes() and SetFileAttributes() have been added.  To add the declaration, do the following:

...