Sign in Join
Wiki copytemporary

File Into Trash/de: what changed

Revision 2 to 3. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
1-[![Windows logo - 2012.svg](https://upload.wikimedia.org/wikipedia/commons/thumb/5/5f/Windows_logo_-_2012.svg/50px-Windows_logo_-_2012.svg.png)](</File:Windows_logo_-_2012.svg>)
2-
3-Dieser Artikel behandelt ausschließlich [Windows](</Category:Windows> "Category:Windows").
1+Zurück zur Seite [[code examples/de|Code Beispiele]].
42
5-Siehe auch: [[Multiplatform Programming Guide/de]]
3+Dieser Artikel beschäftigt sich mit der Windowsprogrammierung.
64
7-│ **Deutsch (de)** │ **[[File Into Trash|English (en)]]** │
8-****
5+Die Funktion verschiebt eine Datei in den Papierkorb.
96
7+``` pascal
8+uses
9+ ShellAPI, FileUtil, ...;
1010
11-Zurück zur Seite [[code examples/de|Code Beispiele]].
12-
11+ ...
1312
14-Dieser Artikel beschäftigt sich mit der Windowsprogrammierung.
13+function funDateiInPapierkorbVerschieben(strDateiname: string): boolean;
14+var
15+ Dateistruktur: TSHFileOpStruct;
16+begin
17+ FillChar(Dateistruktur, SizeOf(Dateistruktur), 0);
1518
16-Die Funktion verschiebt eine Datei in den Papierkorb.
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- ...
19+ with Dateistruktur do
20+ begin
21+ wFunc := FO_DELETE;
22+ // Lässt Umlaute usw. im Dateinamen zu
23+ pFrom := PChar(UTF8ToSys(strDateiname));
24+ fFlags := FOF_ALLOWUNDO + FOF_NOCONFIRMATION + FOF_SILENT;
25+ end;
26+
27+ Result := ShFileOperation(Dateistruktur) = 0;
28+end;
29+
30+ ...
31+
4132```
4233
4334---
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).*
35+*From the Free Pascal wiki, page "File Into Trash/de", as it stood on 2020-02-15 after a change by Trev, out of the wiki's dump of 2024-05-26. 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).*

Back to history