Wozu GetFileAttributesTransacted?
-
Will grad zum ersten Mal transacted operations benutzen.
Aber wozu braucht man eigentlich GetFileAttributesTransacted? Um das Auslesen der Dateiinfo rückgängig zu machen
Oder muss man während einer Transaktion diese Funktion verwenden, um die Dateiinfo zu bekommen, die zu den durch die Transaktion (dann) veränderten Daten passt?
Aber ein ReadFileTransacted zB. gibts ja nicht...
-
Vielleicht eher eine billige Art zu sehen ob eine Datei außerhalb einer Transaktion verwendet wird:
If a file is open for modification in a transaction, no other thread can open the file for modification until the transaction is committed. Conversely, if a file is open for modification outside of a transaction, no transacted thread can open the file for modification until the non-transacted handle is closed. If a non-transacted thread has a handle opened to modify a file, a call to GetFileAttributesTransacted for that file will fail with an ERROR_TRANSACTIONAL_CONFLICT error