<?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[datei kopierschützen]]></title><description><![CDATA[<p>hallölle ^^</p>
<p>ich hab da mal eine frage<br />
undzwar versuche ich gerade vergebens eine beliebige datei, so zu schützen, das man sie nich mehr kopieren kann.</p>
<p>ich versuch gerade sie in meinem prog. zu öffnen also schreib und lese rechte, dann kann man sie zwar nich mehr löschen, aber kopieren geht imma noch!</p>
<p>es war eig. so gedacht, dass es i-wie draufzugreift, also die datei öffnet, die kopiergeschützt wrden soll ...</p>
<p>kann mir da einer helfen, bitte????</p>
<p>dangge vorweg!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/177856/datei-kopierschützen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 23:48:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/177856.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 04 Apr 2007 17:50:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to datei kopierschützen on Wed, 04 Apr 2007 17:50:08 GMT]]></title><description><![CDATA[<p>hallölle ^^</p>
<p>ich hab da mal eine frage<br />
undzwar versuche ich gerade vergebens eine beliebige datei, so zu schützen, das man sie nich mehr kopieren kann.</p>
<p>ich versuch gerade sie in meinem prog. zu öffnen also schreib und lese rechte, dann kann man sie zwar nich mehr löschen, aber kopieren geht imma noch!</p>
<p>es war eig. so gedacht, dass es i-wie draufzugreift, also die datei öffnet, die kopiergeschützt wrden soll ...</p>
<p>kann mir da einer helfen, bitte????</p>
<p>dangge vorweg!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1259448</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1259448</guid><dc:creator><![CDATA[freenetuser]]></dc:creator><pubDate>Wed, 04 Apr 2007 17:50:08 GMT</pubDate></item><item><title><![CDATA[Reply to datei kopierschützen on Wed, 04 Apr 2007 17:54:15 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>&quot;Kopierschutz&quot; ist sicher ein völlig ungebräuchlicher Begriff...</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1259451</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1259451</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Wed, 04 Apr 2007 17:54:15 GMT</pubDate></item><item><title><![CDATA[Reply to datei kopierschützen on Wed, 04 Apr 2007 18:04:47 GMT]]></title><description><![CDATA[<p>stimmt, es geht ja auch nur darum, dass anfänger, die keine ahnung von sowas haben, bei dem simplen kopiervorgang von einer datei, einfach eine dicke fehlermeldung bekommen, und zwar die, wo steht, dass diese datei von einem anderen programm genutzt wird (geöffnet)...</p>
<p>aber kopieren geht bei mir imma noch, auch wenn ich sie zum lesen in meinem prog geöffnet hab!</p>
<p>help ???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1259461</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1259461</guid><dc:creator><![CDATA[freenetuser]]></dc:creator><pubDate>Wed, 04 Apr 2007 18:04:47 GMT</pubDate></item><item><title><![CDATA[Reply to datei kopierschützen on Wed, 04 Apr 2007 18:07:55 GMT]]></title><description><![CDATA[<p>freenetuser schrieb:</p>
<blockquote>
<p>aber kopieren geht bei mir imma noch, auch wenn ich sie zum lesen in meinem prog geöffnet hab!</p>
</blockquote>
<p>Und das wird auch immer so bleiben...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1259465</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1259465</guid><dc:creator><![CDATA[WebFritzi]]></dc:creator><pubDate>Wed, 04 Apr 2007 18:07:55 GMT</pubDate></item><item><title><![CDATA[Reply to datei kopierschützen on Wed, 04 Apr 2007 18:18:24 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Mit WinAPI-Mitteln (<a href="http://msdn2.microsoft.com/en-us/library/aa365430.aspx" rel="nofollow">OpenFile</a>) kannst du mittels Modi <strong>OF_SHARE_EXCLUSIVE</strong> verhindern das andere Prozeße eine geöffnete Datei ebenfalls ausliest.<br />
Allerdings ist auch das nur gegen Anfänger und Standardprogramme sicher. Es gibt immer noch Tools die solche Bindungen auflösen können.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1259478</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1259478</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Wed, 04 Apr 2007 18:18:24 GMT</pubDate></item><item><title><![CDATA[Reply to datei kopierschützen on Wed, 04 Apr 2007 18:39:13 GMT]]></title><description><![CDATA[<p>danke</p>
<p>wie muss ich diese OFSTRUCT variable erstellen ???</p>
<p>hier mein code, geht aba nich:</p>
<pre><code>LPOFSTRUCT pi;
OpenFile(&quot;C:\\test.wma&quot;, pi, OF_SHARE_EXCLUSIVE)
</code></pre>
<p>kommtn kernel32.dll fehler!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1259497</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1259497</guid><dc:creator><![CDATA[freenetuser]]></dc:creator><pubDate>Wed, 04 Apr 2007 18:39:13 GMT</pubDate></item><item><title><![CDATA[Reply to datei kopierschützen on Wed, 04 Apr 2007 18:58:14 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>LP... heißt in der WinAPI immer Long Pointer. Das bedeutet das du einen nicht initialisierten Pointer an OpenFile übergibst. Du must natürlich erstmal eine gültige Struktur von OFSTRUCT haben</p>
<pre><code class="language-cpp">OFSTRUCT pi;
OpenFile(&quot;C:\\test.wma&quot;, &amp;pi, OF_SHARE_EXCLUSIVE)
</code></pre>
<p>Aus dem MSDN-Artikel bleibt allerdings offen ob dieser Parameter für deine Zwecke überhaupt gebraucht wird, eventuell reicht auch einfach 0 zu übergeben.</p>
<p>Allerdings ist klar das OpenFile veraltet ist und <a href="http://msdn2.microsoft.com/en-us/library/aa363858.aspx" rel="nofollow">CreateFile</a> benutzt werden sollte.</p>
<blockquote>
<p>...<br />
dwShareMode<br />
..<br />
If this parameter is 0 (zero) and CreateFile succeeds, the object cannot be shared and cannot be opened again until the handle is closed. For more information, see the Remarks section of this topic.</p>
</blockquote>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1259505</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1259505</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Wed, 04 Apr 2007 18:58:14 GMT</pubDate></item><item><title><![CDATA[Reply to datei kopierschützen on Wed, 04 Apr 2007 18:56:25 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-14774.html" rel="nofollow">akari</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-2.html" rel="nofollow">VCL/CLX (Borland C++ Builder)</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-4.html" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1259507</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1259507</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 04 Apr 2007 18:56:25 GMT</pubDate></item><item><title><![CDATA[Reply to datei kopierschützen on Wed, 04 Apr 2007 19:50:48 GMT]]></title><description><![CDATA[<p>Du kannst aber auch die TFileStream- Komponente der Borland VCL verwenden:</p>
<pre><code>[cpp]
TFileStream* fs = new TFileStream(&quot;Datei.dat&quot;,fmOpenReadWrite|fmShareExclusive);

// Dein Code

delete fs; //Wenn du die Datei nicht 
fs = NULL; //mehr schützen möchtest
[/cpp]
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1259554</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1259554</guid><dc:creator><![CDATA[kingvik387]]></dc:creator><pubDate>Wed, 04 Apr 2007 19:50:48 GMT</pubDate></item></channel></rss>