<?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[CreateFile und UNC Pfade]]></title><description><![CDATA[<p>Hi an alle,</p>
<p>zum Überwachen eines Verzeichnisses hole ich mir das Handle auf das zu überwachende Verzeichnis via CreateFile:</p>
<pre><code>HANDLE hDir = CreateFile(L&quot;\\\\UNC\\weiter\\naechster\\etc&quot;, 
    FILE_LIST_DIRECTORY,
    FILE_SHARE_READ|FILE_SHARE_WRITE,
    NULL,
    OPEN_EXISTING,
    FILE_FLAG_BACKUP_SEMANTICS,
    NULL);
</code></pre>
<p>Solange ich das bei mir lokal so mache läuft das auch prima. Sobald ich nun den Service auf einem anderen Rechner ausführe, endet CreateFile mit Fehler 3: Das System kann den angegebenen Pfad nicht finden.<br />
Gebe ich jetzt anstatt dem unc Pfad einen Laufwerksbuchstaben an funktioniert die Sache so wie soll. Jemand eine Idee woran das liegen kann???</p>
<p>Gruß</p>
<p>CrazyPlaya</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/216021/createfile-und-unc-pfade</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 19:33:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/216021.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 18 Jun 2008 09:41:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CreateFile und UNC Pfade on Wed, 18 Jun 2008 09:41:46 GMT]]></title><description><![CDATA[<p>Hi an alle,</p>
<p>zum Überwachen eines Verzeichnisses hole ich mir das Handle auf das zu überwachende Verzeichnis via CreateFile:</p>
<pre><code>HANDLE hDir = CreateFile(L&quot;\\\\UNC\\weiter\\naechster\\etc&quot;, 
    FILE_LIST_DIRECTORY,
    FILE_SHARE_READ|FILE_SHARE_WRITE,
    NULL,
    OPEN_EXISTING,
    FILE_FLAG_BACKUP_SEMANTICS,
    NULL);
</code></pre>
<p>Solange ich das bei mir lokal so mache läuft das auch prima. Sobald ich nun den Service auf einem anderen Rechner ausführe, endet CreateFile mit Fehler 3: Das System kann den angegebenen Pfad nicht finden.<br />
Gebe ich jetzt anstatt dem unc Pfad einen Laufwerksbuchstaben an funktioniert die Sache so wie soll. Jemand eine Idee woran das liegen kann???</p>
<p>Gruß</p>
<p>CrazyPlaya</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1531376</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1531376</guid><dc:creator><![CDATA[CrazyPlaya]]></dc:creator><pubDate>Wed, 18 Jun 2008 09:41:46 GMT</pubDate></item><item><title><![CDATA[Reply to CreateFile und UNC Pfade on Wed, 18 Jun 2008 09:46:55 GMT]]></title><description><![CDATA[<p>Wenn Dein Service als &quot;Lokales-System&quot; läuft hat er keinen Netzwerkzugriff. Das sollte Dir klar sein.</p>
<p>Gib ihm einen entsprechenden Account oder packe in die Gruppe der &quot;Netzwerkdienst&quot;e!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1531381</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1531381</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 18 Jun 2008 09:46:55 GMT</pubDate></item><item><title><![CDATA[Reply to CreateFile und UNC Pfade on Wed, 18 Jun 2008 09:49:13 GMT]]></title><description><![CDATA[<p>Hab ich die Möglichkeit das programmiertechnisch zu machen? Oder habe ich noch eine andere Möglichkeit an das Handle zu kommen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1531384</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1531384</guid><dc:creator><![CDATA[CrazyPlaya]]></dc:creator><pubDate>Wed, 18 Jun 2008 09:49:13 GMT</pubDate></item><item><title><![CDATA[Reply to CreateFile und UNC Pfade on Wed, 18 Jun 2008 10:27:32 GMT]]></title><description><![CDATA[<p>CrazyPlaya schrieb:</p>
<blockquote>
<p>Hab ich die Möglichkeit das programmiertechnisch zu machen? Oder habe ich noch eine andere Möglichkeit an das Handle zu kommen?</p>
</blockquote>
<p>Rembrandt, Bahnhof <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Das hängt davon ab, wie Du Deinen Servics installierst... ein Installer wie Instalshield macht das mit links... <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>Siehe Doku zu CreateService!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1531404</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1531404</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 18 Jun 2008 10:27:32 GMT</pubDate></item></channel></rss>