<?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[Verzeichnis -&amp;gt; nur Leserechte -&amp;gt; wie?]]></title><description><![CDATA[<p>Hallo,</p>
<p>wie kann ich ein Verzeichnis &quot;read only&quot; machen, daß da keiner rein schreiben kann?</p>
<p>-danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/76987/verzeichnis-gt-nur-leserechte-gt-wie</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 17:39:23 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/76987.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Jun 2004 14:46:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Verzeichnis -&amp;gt; nur Leserechte -&amp;gt; wie? on Wed, 16 Jun 2004 14:46:35 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>wie kann ich ein Verzeichnis &quot;read only&quot; machen, daß da keiner rein schreiben kann?</p>
<p>-danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/541667</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/541667</guid><dc:creator><![CDATA[-xy-]]></dc:creator><pubDate>Wed, 16 Jun 2004 14:46:35 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnis -&amp;gt; nur Leserechte -&amp;gt; wie? on Wed, 16 Jun 2004 14:51:57 GMT]]></title><description><![CDATA[<p>rechteverwaltung? unter windows? gibts nich <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /><br />
es kursieren zwar gerüchte, dass man sowas mit ntfs machen können soll aber wenn dann geht das auch nur ansatzweise. also wenn du wirklich ein system mit vernünftiger rechteverwaltung BRAUCHST, wirst du wohl um ein *nix schwer herumkommen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/541672</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/541672</guid><dc:creator><![CDATA[fallen]]></dc:creator><pubDate>Wed, 16 Jun 2004 14:51:57 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnis -&amp;gt; nur Leserechte -&amp;gt; wie? on Wed, 16 Jun 2004 15:52:38 GMT]]></title><description><![CDATA[<p>Bevor wir uns weiter den Kopf zerbrechen - für welches Betriebssytem soll das Ganze denn werden?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/541743</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/541743</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Wed, 16 Jun 2004 15:52:38 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnis -&amp;gt; nur Leserechte -&amp;gt; wie? on Thu, 17 Jun 2004 06:55:44 GMT]]></title><description><![CDATA[<p>danke schon mal!</p>
<p>flenders schrieb:</p>
<blockquote>
<p>für welches Betriebssytem soll das Ganze denn werden?</p>
</blockquote>
<p>Für Windows 2000</p>
]]></description><link>https://www.c-plusplus.net/forum/post/542060</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/542060</guid><dc:creator><![CDATA[-xy-]]></dc:creator><pubDate>Thu, 17 Jun 2004 06:55:44 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnis -&amp;gt; nur Leserechte -&amp;gt; wie? on Thu, 17 Jun 2004 10:50:01 GMT]]></title><description><![CDATA[<p><a href="http://msdn.microsoft.com/library/en-us/fileio/base/file_security_and_access_rights.asp" rel="nofollow">File Security and Access Rights</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/542211</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/542211</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Thu, 17 Jun 2004 10:50:01 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnis -&amp;gt; nur Leserechte -&amp;gt; wie? on Fri, 18 Jun 2004 10:14:43 GMT]]></title><description><![CDATA[<p>flenders schrieb:</p>
<blockquote>
<p><a href="http://msdn.microsoft.com/library/en-us/fileio/base/file_security_and_access_rights.asp" rel="nofollow">File Security and Access Rights</a></p>
</blockquote>
<p>danke <a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/1644">@flenders</a>!</p>
<p>Wenn ich es richtig verstanden habe, ist die einzige Möglichkeit, ein Verzeichnis schreibgeschützt zu machen, es über die Zugriffsrechte zu machen, was man mit SetSecurityInfo() machen kann.</p>
<p>Nun versuche ich erst mal folgenden Code zu testen:</p>
<pre><code class="language-cpp">hFile = CreateFile(
                  Edit1-&gt;Text.c_str(),
                  GENERIC_READ | WRITE_DAC,
                  FILE_SHARE_READ,
                  NULL,
                  OPEN_EXISTING,
                  FILE_ATTRIBUTE_NORMAL,
                  NULL);

dwRtnCode = GetSecurityInfo(
                  hFile,
                  SE_FILE_OBJECT,
                  OWNER_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION,
                  &amp;pSidOwner,
                  NULL,
                  &amp;pDACL,
                  NULL,
                  &amp;pSD);
</code></pre>
<p>Beim Complieren bekomme ich aber folgende Fehlermeldung:</p>
<blockquote>
<p>[C++ Fehler] Aclapi.h(102): E2015 Mehrdeutigkeit zwischen 'PACCESS_MASK' und 'Windows::PACCESS_MASK'</p>
</blockquote>
<p>kann jemand da helfen?<br />
-danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/543034</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/543034</guid><dc:creator><![CDATA[-xy-]]></dc:creator><pubDate>Fri, 18 Jun 2004 10:14:43 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnis -&amp;gt; nur Leserechte -&amp;gt; wie? on Fri, 18 Jun 2004 10:25:23 GMT]]></title><description><![CDATA[<p>Google hilft bei sowas oft schnell weiter <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>&lt;a href= schrieb:</p>
<blockquote>
<p><a href="http://www.entwickler-forum.de" rel="nofollow">www.entwickler-forum.de</a>&quot;&gt;Wenn man ein reines API-Programm schreib funktionierts ohne Konflikte zwischen PACCESS_MASK. Wird jedoch die vcl.h mit eingebunden so hat man unter Umständen Probleme. Es ist wichtig, dass die aclapi.h VOR der vcl.h eingebunden wird, dann klappts einwandfrei:-).</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/543045</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/543045</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Fri, 18 Jun 2004 10:25:23 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnis -&amp;gt; nur Leserechte -&amp;gt; wie? on Fri, 18 Jun 2004 11:31:47 GMT]]></title><description><![CDATA[<p>danke vielmals <a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/1644">@flenders</a>!</p>
<p>flenders schrieb:</p>
<blockquote>
<p>Google hilft bei sowas oft schnell weiter <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
</blockquote>
<p>meine erste &quot;Anlaufstelle&quot; ist das Forum hier, und daran habe ich mich irgendwie gewöhnt, und komme nicht mehr darauf, zuerst zu googln <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
Das nächste Mal google ich aber zuerst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/543085</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/543085</guid><dc:creator><![CDATA[-xy-]]></dc:creator><pubDate>Fri, 18 Jun 2004 11:31:47 GMT</pubDate></item></channel></rss>