Thread: BackupRead() API and the FILE_FLAG_NO_BUFFERING flag

  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
    623
    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

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

  6. #6

Popular pages Recent additions subscribe to a feed
Website Security Test