File Into Trash/de: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | - | ||
| 2 | - | ||
| 3 | - | ||
| 1 | + | [](</File:Windows_logo_-_2012.svg>) | |
| 4 | 2 | ||
| 5 | - | ||
| 3 | + | Dieser Artikel behandelt ausschließlich [Windows](</Category:Windows> "Category:Windows"). | |
| 6 | 4 | ||
| 7 | - | ||
| 8 | - | ||
| 9 | - | ||
| 10 | - | ||
| 11 | - | ||
| 12 | - | ||
| 13 | - | ||
| 14 | - | ||
| 15 | - | ||
| 16 | - | ||
| 17 | - | ||
| 5 | + | Siehe auch: [[Multiplatform Programming Guide/de]] | |
| 18 | 6 | ||
| 19 | - | ||
| 20 | - | ||
| 21 | - | ||
| 22 | - | ||
| 23 | - | ||
| 24 | - | ||
| 25 | - | ||
| 7 | + | │ **Deutsch (de)** │ **[[File Into Trash|English (en)]]** │ | |
| 8 | + | **** | |
| 26 | 9 | ||
| 27 | - | ||
| 28 | - | ||
| 29 | 10 | ||
| 30 | - | ||
| 11 | + | Zurück zur Seite [[code examples/de|Code Beispiele]]. | |
| 12 | + | ||
| 31 | 13 | ||
| 14 | + | Dieser Artikel beschäftigt sich mit der Windowsprogrammierung. | |
| 15 | + | ||
| 16 | + | Die Funktion verschiebt eine Datei in den Papierkorb. | |
| 32 | 17 | ``` | |
| 18 | + | uses | |
| 19 | + | ShellAPI, FileUtil, ...; | |
| 20 | + | ||
| 21 | + | ... | |
| 22 | + | ||
| 23 | + | function funDateiInPapierkorbVerschieben(strDateiname: string): boolean; | |
| 24 | + | var | |
| 25 | + | Dateistruktur: TSHFileOpStruct; | |
| 26 | + | begin | |
| 27 | + | FillChar(Dateistruktur, SizeOf(Dateistruktur), 0); | |
| 28 | + | ||
| 29 | + | with Dateistruktur do | |
| 30 | + | begin | |
| 31 | + | wFunc := FO_DELETE; | |
| 32 | + | // Lässt Umlaute usw. im Dateinamen zu | |
| 33 | + | pFrom := PChar(UTF8ToSys(strDateiname)); | |
| 34 | + | fFlags := FOF_ALLOWUNDO + FOF_NOCONFIRMATION + FOF_SILENT; | |
| 35 | + | end; | |
| 36 | + | ||
| 37 | + | Result := ShFileOperation(Dateistruktur) = 0; | |
| 38 | + | end; | |
| 39 | + | ||
| 40 | + | ... | |
| 41 | + | ``` | |
| 33 | 42 | ||
| 34 | 43 | --- | |
| 35 | - | ||
| 44 | + | *From the Free Pascal wiki, page "File Into Trash/de", as the Internet Archive kept it on 2023-03-30. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
