Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   IFileOperation und Zurücksetzen eines ReadOnly-Flags (https://www.delphipraxis.net/199910-ifileoperation-und-zuruecksetzen-eines-readonly-flags.html)

Bernhard Geyer 1. Mär 2019 09:55

IFileOperation und Zurücksetzen eines ReadOnly-Flags
 
Bei der Nutzung von IFileOperation würde ich gern auch ein evtl. ReadOnly-Flag zurück setzen.
Jedoch sehe ich in IFileOperation und IFileOperationProgressSink keine Möglichkeit die Dateiattribute zu setzen.
Für die Security-Attribute geht das über SetOperationFlags und FOF_NOCOPYSECURITYATTRIBS

Jemand eine Idee oder muss man das wieder "Old-School" per SetFileAttributes durchführen?


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:43 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz