<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CopyFileEx Callback Funktion]]></title><description><![CDATA[<p>Hallo,</p>
<p>für CopyFileEx benötige ich ja eine Callback Funktion. Ich hab da auch was gefunden und umgeschrieben:</p>
<pre><code class="language-cpp">DWORD CALLBACK CopyProgressRoutine(
    LARGE_INTEGER TotalFileSize,          // Datei Größe
    LARGE_INTEGER TotalBytesTransferred,  // Kopierten Bytes
    LARGE_INTEGER StreamSize,             // Stream Größe in Byte
    LARGE_INTEGER StreamBytesTransferred, // Kopierten Bytes des Streams
    DWORD dwStreamNumber,                 // aktueller Stream
    DWORD dwCallbackReason,               // calelback reason
    HANDLE hSourceFile,                   // handle to source file
    HANDLE hDestinationFile,              // handle to destination file
    LPVOID lpData                         // from CopyFileEx
)
{
    Application-&gt;ProcessMessages();
    if (copystop==false)
    return PROGRESS_CONTINUE;
    else
    return PROGRESS_CANCEL;

}
</code></pre>
<p>Aber was ist eine Callback Funktion eigentlich und was macht sie aus. Und was heißt DWORD,LPVOID,LARGE_INTEGER? Sind das Variablentypen von WINAPI oder was?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/106356/copyfileex-callback-funktion</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 00:10:56 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/106356.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 08 Apr 2005 21:24:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CopyFileEx Callback Funktion on Fri, 08 Apr 2005 21:24:08 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>für CopyFileEx benötige ich ja eine Callback Funktion. Ich hab da auch was gefunden und umgeschrieben:</p>
<pre><code class="language-cpp">DWORD CALLBACK CopyProgressRoutine(
    LARGE_INTEGER TotalFileSize,          // Datei Größe
    LARGE_INTEGER TotalBytesTransferred,  // Kopierten Bytes
    LARGE_INTEGER StreamSize,             // Stream Größe in Byte
    LARGE_INTEGER StreamBytesTransferred, // Kopierten Bytes des Streams
    DWORD dwStreamNumber,                 // aktueller Stream
    DWORD dwCallbackReason,               // calelback reason
    HANDLE hSourceFile,                   // handle to source file
    HANDLE hDestinationFile,              // handle to destination file
    LPVOID lpData                         // from CopyFileEx
)
{
    Application-&gt;ProcessMessages();
    if (copystop==false)
    return PROGRESS_CONTINUE;
    else
    return PROGRESS_CANCEL;

}
</code></pre>
<p>Aber was ist eine Callback Funktion eigentlich und was macht sie aus. Und was heißt DWORD,LPVOID,LARGE_INTEGER? Sind das Variablentypen von WINAPI oder was?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/762686</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/762686</guid><dc:creator><![CDATA[daniel1986]]></dc:creator><pubDate>Fri, 08 Apr 2005 21:24:08 GMT</pubDate></item><item><title><![CDATA[Reply to CopyFileEx Callback Funktion on Fri, 08 Apr 2005 21:31:46 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>eine Callback-Funktion ist eine Anwendung von Funktionspointern.<br />
Das Prinzip ist immer dasselbe :<br />
Du hast eine Funktion, die iterativ arbeitet (in deinem Fall CopyFileEx). Bei jedem Schritt soll eine anwendungsspezifische Funktion ausgeführt werden, die zu diesem Zweck &quot;zurückgerufen&quot; wird (in deinem Fall eine Überprüfung, ob das Kopieren fortgesetzt werden soll.</p>
<blockquote>
<p>Und was heißt DWORD,LPVOID,LARGE_INTEGER? Sind das Variablentypen von WINAPI oder was?</p>
</blockquote>
<p>Das sind typdefs der WinAPI, hinter denen sich C- kompatible Daten verbergen.<br />
Was genau, findest du im WinAPI-Forum oder in MSDN.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/762688</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/762688</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Fri, 08 Apr 2005 21:31:46 GMT</pubDate></item><item><title><![CDATA[Reply to CopyFileEx Callback Funktion on Fri, 08 Apr 2005 21:35:50 GMT]]></title><description><![CDATA[<p>daniel1986 schrieb:</p>
<blockquote>
<p>Und was heißt DWORD,LPVOID,LARGE_INTEGER? Sind das Variablentypen von WINAPI oder was?</p>
</blockquote>
<p>unter 32bit windoofs ist<br />
DWORD --&gt; ein unsigned 32 bit wert<br />
LPVOID --&gt; ein typloser zeiger (void*)<br />
LARGE_INTEGER --&gt; eine struct die aus 2 32-bit komponenten besteht (64 bits)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/762691</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/762691</guid><dc:creator><![CDATA[net 0]]></dc:creator><pubDate>Fri, 08 Apr 2005 21:35:50 GMT</pubDate></item><item><title><![CDATA[Reply to CopyFileEx Callback Funktion on Fri, 08 Apr 2005 21:51:11 GMT]]></title><description><![CDATA[<p>Vielen Dank für die schnelle Hilfe!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/762699</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/762699</guid><dc:creator><![CDATA[daniel1986]]></dc:creator><pubDate>Fri, 08 Apr 2005 21:51:11 GMT</pubDate></item></channel></rss>