BackupRead() API and the FILE_FLAG_NO_BUFFERING flag

This is a discussion on BackupRead() API and the FILE_FLAG_NO_BUFFERING flag within the Windows Programming forums, part of the Platform Specific Boards category; Hello All, If a file is opened using the FILE_FLAG_NO_BUFFERING flag for un-buffered I/O with CreateFile() API, it cannot be ...

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    31

    BackupRead() API and the FILE_FLAG_NO_BUFFERING flag

    Hello All,

    If a file is opened using the FILE_FLAG_NO_BUFFERING flag for un-buffered I/O with CreateFile() API, it cannot be backed up using BackupRead().

    With un-buffered I/O how can I then back up a file as the ReadFile() API which would work when FILE_FLAG_NO_BUFFERING is used cannot backup metadata.

    Thanks

  2. #2
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    612
    Back it up yourself? Nothing's stopping you from reading the security information as a separate operation and storing it.

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    31
    Thanks....
    How can I get them separately ?Will the API GetFileAttributes() get these for me ?

  4. #4
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    612

  5. #5
    Registered User
    Join Date
    May 2008
    Posts
    31
    However, the BackupRead() API would also get me the stream information.

  6. #6
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    612

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21