<?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[Berechtigungungen für Verzeichnisse setzen]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich möchte die Berechtigungen für ein Verzeichnis verändern. Zum Ausprobieren habe ich ein Beispiel aus der Win32-Hilfe nachvollzogen, indem alle Berechtigungen entfernt werden. Das funktioniert auch, aber zusätzlich hat anschließend &quot;Jeder&quot; Vollzugriff auf das Verzeichnis. Hier ein bißchen Code:</p>
<pre><code class="language-cpp">// create an ACL with no ACEs

  dwRes = ::SetEntriesInAcl(0, NULL, NULL, &amp;pDacl);
  if (ERROR_SUCCESS != dwRes) return dwRes;

  // attach the emtpy ACL as the object's DACL

  dwRes = SetNamedSecurityInfo(lpObjectName, ObjectType,
      DACL_SECURITY_INFORMATION,
      NULL, NULL, pDacl, NULL);
</code></pre>
<p>Hat jemand eine Erklärung dafür?</p>
<p>Danke im voraus.</p>
<p>Rob'</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/114220/berechtigungungen-für-verzeichnisse-setzen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 01 Jul 2026 21:05:53 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/114220.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 01 Jul 2005 12:23:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Berechtigungungen für Verzeichnisse setzen on Fri, 01 Jul 2005 12:23:44 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich möchte die Berechtigungen für ein Verzeichnis verändern. Zum Ausprobieren habe ich ein Beispiel aus der Win32-Hilfe nachvollzogen, indem alle Berechtigungen entfernt werden. Das funktioniert auch, aber zusätzlich hat anschließend &quot;Jeder&quot; Vollzugriff auf das Verzeichnis. Hier ein bißchen Code:</p>
<pre><code class="language-cpp">// create an ACL with no ACEs

  dwRes = ::SetEntriesInAcl(0, NULL, NULL, &amp;pDacl);
  if (ERROR_SUCCESS != dwRes) return dwRes;

  // attach the emtpy ACL as the object's DACL

  dwRes = SetNamedSecurityInfo(lpObjectName, ObjectType,
      DACL_SECURITY_INFORMATION,
      NULL, NULL, pDacl, NULL);
</code></pre>
<p>Hat jemand eine Erklärung dafür?</p>
<p>Danke im voraus.</p>
<p>Rob'</p>
]]></description><link>https://www.c-plusplus.net/forum/post/821391</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/821391</guid><dc:creator><![CDATA[Rob&#x27;]]></dc:creator><pubDate>Fri, 01 Jul 2005 12:23:44 GMT</pubDate></item><item><title><![CDATA[Reply to Berechtigungungen für Verzeichnisse setzen on Fri, 01 Jul 2005 12:29:54 GMT]]></title><description><![CDATA[<p>Das wird an den parametern liegen. Guck doch einfach mal nach im PSDK oder online im MSDN.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/821398</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/821398</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Fri, 01 Jul 2005 12:29:54 GMT</pubDate></item><item><title><![CDATA[Reply to Berechtigungungen für Verzeichnisse setzen on Fri, 01 Jul 2005 12:40:35 GMT]]></title><description><![CDATA[<p>Hier ein Zitat aus der Win32-Hilfe: &quot;The first example shows how to add an empty DACL to an object's security descriptor. The effect is to deny all access to the object.&quot;</p>
<p>Rob'</p>
]]></description><link>https://www.c-plusplus.net/forum/post/821404</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/821404</guid><dc:creator><![CDATA[Rob&#x27;]]></dc:creator><pubDate>Fri, 01 Jul 2005 12:40:35 GMT</pubDate></item></channel></rss>