Sign in Join
Wiki copytemporary

File Into Trash/de: what changed

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

OldNewLine
1-Zurück zur Seite [[code examples/de|Code Beispiele]].
2-
3-Dieser Artikel beschäftigt sich mit der Windowsprogrammierung.
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>)
42
5-Die Funktion verschiebt eine Datei in den Papierkorb.
3+Dieser Artikel behandelt ausschließlich [Windows](</Category:Windows> "Category:Windows").
64
7-``` pascal
8-uses
9- ShellAPI, FileUtil, ...;
10-
11- ...
12-
13-function funDateiInPapierkorbVerschieben(strDateiname: string): boolean;
14-var
15- Dateistruktur: TSHFileOpStruct;
16-begin
17- FillChar(Dateistruktur, SizeOf(Dateistruktur), 0);
5+Siehe auch: [[Multiplatform Programming Guide/de]]
186
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;
7+│ **Deutsch (de)** │ **[[File Into Trash|English (en)]]** │
8+****
269
27- Result := ShFileOperation(Dateistruktur) = 0;
28-end;
2910
30- ...
11+Zurück zur Seite [[code examples/de|Code Beispiele]].
12+
3113
14+Dieser Artikel beschäftigt sich mit der Windowsprogrammierung.
15+
16+Die Funktion verschiebt eine Datei in den Papierkorb.
3217```
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+```
3342
3443---
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).*
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).*

Back to history