Hallo David,
in der
Dokumentation von Microsoft steht unter anderem folgendes zu den Feldern
pFrom und
pTo:
Zitat:
Although this member is declared as a single null-terminated string, it is actually a buffer that can hold multiple null-delimited file names. Each file name is terminated by a single NULL character. The last file name is terminated with a double NULL character ("\0\0") to indicate the end of the buffer.
Versuche es einmal so:
Delphi-Quellcode:
pFrom := PChar(fromFile + #0);
pTo := PChar(toFile + #0);
Gruß Hawkeye