<?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() ShareMode und Win2000&#x2F;XP]]></title><description><![CDATA[<p>Hallo,</p>
<p>kann es sein dass es mit den genannten Betriebssystemen nicht mehr möglich ist Dateien im ShareMode 0 (also keinerlei Zugriff von außen weiter erlaubt) zu öffnen?</p>
<pre><code class="language-cpp">hTest_File = CreateFile(&quot;test.dat&quot;,
			GENERIC_READ,	         // Desired Access
			0,		         // Share Mode
			NULL,		         // Security Attributes
			OPEN_EXISTING,	         // Creaton Dispotion
			FILE_ATTRIBUTE_NORMAL,	 // Flags and Attrubuts
			NULL);			 // Template File
</code></pre>
<p>funktioniert nicht, während ...</p>
<pre><code class="language-cpp">hTest_File = CreateFile(&quot;test.dat&quot;,
			GENERIC_READ,	         // Desired Access
			FILE_SHARE_READ,         // Share Mode
			NULL,		         // Security Attributes
			OPEN_EXISTING,	         // Creaton Dispotion
			FILE_ATTRIBUTE_NORMAL,	 // Flags and Attrubuts
			NULL);			 // Template File
</code></pre>
<p>... funktioniert.</p>
<p>Vielen Dank für Hinweise!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/86336/createfile-sharemode-und-win2000-xp</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 14:54:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/86336.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 18 Sep 2004 09:42:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CreateFile() ShareMode und Win2000&#x2F;XP on Sat, 18 Sep 2004 09:42:58 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>kann es sein dass es mit den genannten Betriebssystemen nicht mehr möglich ist Dateien im ShareMode 0 (also keinerlei Zugriff von außen weiter erlaubt) zu öffnen?</p>
<pre><code class="language-cpp">hTest_File = CreateFile(&quot;test.dat&quot;,
			GENERIC_READ,	         // Desired Access
			0,		         // Share Mode
			NULL,		         // Security Attributes
			OPEN_EXISTING,	         // Creaton Dispotion
			FILE_ATTRIBUTE_NORMAL,	 // Flags and Attrubuts
			NULL);			 // Template File
</code></pre>
<p>funktioniert nicht, während ...</p>
<pre><code class="language-cpp">hTest_File = CreateFile(&quot;test.dat&quot;,
			GENERIC_READ,	         // Desired Access
			FILE_SHARE_READ,         // Share Mode
			NULL,		         // Security Attributes
			OPEN_EXISTING,	         // Creaton Dispotion
			FILE_ATTRIBUTE_NORMAL,	 // Flags and Attrubuts
			NULL);			 // Template File
</code></pre>
<p>... funktioniert.</p>
<p>Vielen Dank für Hinweise!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/609743</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/609743</guid><dc:creator><![CDATA[JWolfram]]></dc:creator><pubDate>Sat, 18 Sep 2004 09:42:58 GMT</pubDate></item><item><title><![CDATA[Reply to CreateFile() ShareMode und Win2000&#x2F;XP on Sat, 18 Sep 2004 15:37:32 GMT]]></title><description><![CDATA[<p>Also bei mir (XP Home, NTFS) gehts.<br />
Vielleicht hat ein anderer Prozess es schon geöffnet, so dass kein exklusiver Zugriff mehr erlaubt ist ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/609933</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/609933</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 18 Sep 2004 15:37:32 GMT</pubDate></item><item><title><![CDATA[Reply to CreateFile() ShareMode und Win2000&#x2F;XP on Sat, 18 Sep 2004 15:43:03 GMT]]></title><description><![CDATA[<p>WinXP Prof SP1: Geht.<br />
WinXP Prof SP2: Geht.<br />
Win 2000 SP4: Geht.</p>
<p>Mehr hab ich noch nicht in meinem VMware eingerichtet...<br />
Du mußt halt (wie SeppSchrott schon anmerkt) darauf achten, das die Datei wirklich noch nicht geöffnet wurde.</p>
<p>Was sagt denn GetLastError bei solchen Fehlschlägen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/609938</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/609938</guid><dc:creator><![CDATA[Hepi]]></dc:creator><pubDate>Sat, 18 Sep 2004 15:43:03 GMT</pubDate></item><item><title><![CDATA[Reply to CreateFile() ShareMode und Win2000&#x2F;XP on Sun, 19 Sep 2004 07:48:39 GMT]]></title><description><![CDATA[<p>Seltsam, es funktioniert nun.</p>
<p>Ich hatte sogar den Rechner neu gestartet um es zu testen, und es funktionierte dennoch nicht. Vielleicht wollte der Rechner mich (wieder einmal) einfach nur ärgern. <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>Vielen Dank für die Ratschläge!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/610167</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/610167</guid><dc:creator><![CDATA[JWolfram]]></dc:creator><pubDate>Sun, 19 Sep 2004 07:48:39 GMT</pubDate></item></channel></rss>