<?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[freigeben???]]></title><description><![CDATA[<p>also ich hab mal versucht was freizuben aber des gibt immer 123 zurück also ERROR_INVALID_NAME</p>
<pre><code class="language-cpp">char path[100]=&quot;C://&quot;;
           NET_API_STATUS res;
           SHARE_INFO_2 p;
           DWORD parm_err = 0;
           DWORD versuch;
           DWORD lvl=2;

           p.shi2_netname = TEXT(&quot;netname&quot;);    
           p.shi2_type = STYPE_DISKTREE; // disk drive
           p.shi2_remark =  TEXT(&quot;remark&quot;);  
           p.shi2_permissions =ACCESS_READ;    
           p.shi2_max_uses = 4;
           p.shi2_current_uses = 0;    
           p.shi2_path = TEXT(&quot;C://&quot;);      
           p.shi2_passwd = NULL; // no password
           res=NetShareAdd(NULL, 2, (LPBYTE) &amp;p, &amp;parm_err);
           if(res==0)
              sprintf(buf,&quot;Share created.\n&quot;);
           else
              sprintf(buf,&quot;Error: %u\tparmerr=%u\n&quot;, res, parm_err);
           MessageBox(0,buf,&quot;&quot;,0);   
            return 0;
</code></pre>
<p>aber warum geht des nich??</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/65811/freigeben</link><generator>RSS for Node</generator><lastBuildDate>Thu, 09 Apr 2026 08:20:22 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/65811.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 22 Feb 2004 16:50:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to freigeben??? on Sun, 22 Feb 2004 16:50:17 GMT]]></title><description><![CDATA[<p>also ich hab mal versucht was freizuben aber des gibt immer 123 zurück also ERROR_INVALID_NAME</p>
<pre><code class="language-cpp">char path[100]=&quot;C://&quot;;
           NET_API_STATUS res;
           SHARE_INFO_2 p;
           DWORD parm_err = 0;
           DWORD versuch;
           DWORD lvl=2;

           p.shi2_netname = TEXT(&quot;netname&quot;);    
           p.shi2_type = STYPE_DISKTREE; // disk drive
           p.shi2_remark =  TEXT(&quot;remark&quot;);  
           p.shi2_permissions =ACCESS_READ;    
           p.shi2_max_uses = 4;
           p.shi2_current_uses = 0;    
           p.shi2_path = TEXT(&quot;C://&quot;);      
           p.shi2_passwd = NULL; // no password
           res=NetShareAdd(NULL, 2, (LPBYTE) &amp;p, &amp;parm_err);
           if(res==0)
              sprintf(buf,&quot;Share created.\n&quot;);
           else
              sprintf(buf,&quot;Error: %u\tparmerr=%u\n&quot;, res, parm_err);
           MessageBox(0,buf,&quot;&quot;,0);   
            return 0;
</code></pre>
<p>aber warum geht des nich??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/465359</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/465359</guid><dc:creator><![CDATA[winnie der puhbaer]]></dc:creator><pubDate>Sun, 22 Feb 2004 16:50:17 GMT</pubDate></item><item><title><![CDATA[Reply to freigeben??? on Sun, 22 Feb 2004 18:53:49 GMT]]></title><description><![CDATA[<p>Sicher, das Du da nicht lieber</p>
<pre><code class="language-cpp">TEXT(&quot;C:\\&quot;);
</code></pre>
<p>anstatt</p>
<pre><code class="language-cpp">TEXT(&quot;C://&quot;);
</code></pre>
<p>angeben solltest?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/465376</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/465376</guid><dc:creator><![CDATA[Hepi]]></dc:creator><pubDate>Sun, 22 Feb 2004 18:53:49 GMT</pubDate></item><item><title><![CDATA[Reply to freigeben??? on Sun, 22 Feb 2004 19:08:56 GMT]]></title><description><![CDATA[<p>nee is leider immer noch so</p>
]]></description><link>https://www.c-plusplus.net/forum/post/465388</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/465388</guid><dc:creator><![CDATA[winnie der puhbaer]]></dc:creator><pubDate>Sun, 22 Feb 2004 19:08:56 GMT</pubDate></item><item><title><![CDATA[Reply to freigeben??? on Mon, 23 Feb 2004 07:16:37 GMT]]></title><description><![CDATA[<p>Backslash als Escape-Sequenz: &quot;C:\\\&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/465614</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/465614</guid><dc:creator><![CDATA[C_Bastian]]></dc:creator><pubDate>Mon, 23 Feb 2004 07:16:37 GMT</pubDate></item><item><title><![CDATA[Reply to freigeben??? on Mon, 23 Feb 2004 13:32:10 GMT]]></title><description><![CDATA[<p>geht leider auch nicht trozdem danke</p>
<p>vielleicht is irgentwas anderes falsch???ich finds nur nich</p>
]]></description><link>https://www.c-plusplus.net/forum/post/465909</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/465909</guid><dc:creator><![CDATA[winnie der puhbaer]]></dc:creator><pubDate>Mon, 23 Feb 2004 13:32:10 GMT</pubDate></item><item><title><![CDATA[Reply to freigeben??? on Mon, 23 Feb 2004 13:43:09 GMT]]></title><description><![CDATA[<p>C_Bastian schrieb:</p>
<blockquote>
<p>Backslash als Escape-Sequenz: &quot;C:\\\&quot;</p>
</blockquote>
<p>Nunja, das ist ja schon eine Escape-Sequenz, es heißt ja ursprünglich nur C:\ ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/465915</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/465915</guid><dc:creator><![CDATA[TheToast]]></dc:creator><pubDate>Mon, 23 Feb 2004 13:43:09 GMT</pubDate></item><item><title><![CDATA[Reply to freigeben??? on Mon, 23 Feb 2004 15:09:21 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>versuche einmal, ein anderes Verzeichnis als das Root-Verzeichnis freizugeben:</p>
<pre><code>...
p.shi2_path = TEXT(&quot;C:\\\\testverzeichnis&quot;); 
...
</code></pre>
<p>ob der Fehler immer noch kommt</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/466001</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/466001</guid><dc:creator><![CDATA[Probe-Nutzer]]></dc:creator><pubDate>Mon, 23 Feb 2004 15:09:21 GMT</pubDate></item><item><title><![CDATA[Reply to freigeben??? on Mon, 23 Feb 2004 15:11:05 GMT]]></title><description><![CDATA[<p>natürlich mit einfacher Escape-Sequenz:</p>
<pre><code class="language-cpp">...
p.shi2_path = TEXT(&quot;C:\\testverzeichnis&quot;); 
...
</code></pre>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/466003</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/466003</guid><dc:creator><![CDATA[Probe-Nutzer]]></dc:creator><pubDate>Mon, 23 Feb 2004 15:11:05 GMT</pubDate></item><item><title><![CDATA[Reply to freigeben??? on Mon, 23 Feb 2004 15:14:11 GMT]]></title><description><![CDATA[<p>ne klappt beides nich auch wenn ich ne andere partition nehme</p>
]]></description><link>https://www.c-plusplus.net/forum/post/466007</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/466007</guid><dc:creator><![CDATA[winnie der puhbaer]]></dc:creator><pubDate>Mon, 23 Feb 2004 15:14:11 GMT</pubDate></item><item><title><![CDATA[Reply to freigeben??? on Wed, 25 Feb 2004 16:56:21 GMT]]></title><description><![CDATA[<p>ich glaub des liegt an dem hier<br />
p.shi2_netname = TEXT(&quot;netname&quot;);<br />
aber was is daran falsch??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/467757</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/467757</guid><dc:creator><![CDATA[winnie der puhbaer]]></dc:creator><pubDate>Wed, 25 Feb 2004 16:56:21 GMT</pubDate></item><item><title><![CDATA[Reply to freigeben??? on Wed, 25 Feb 2004 20:48:55 GMT]]></title><description><![CDATA[<p>Kompilierst du mit UNICODE? Das wird nämlich laut Doku erwartet:</p>
<blockquote>
<p><strong>shi2_path</strong><br />
Pointer to a Unicode string specifying the local path for the shared resource.<br />
[...]</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/467923</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/467923</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Wed, 25 Feb 2004 20:48:55 GMT</pubDate></item><item><title><![CDATA[Reply to freigeben??? on Wed, 25 Feb 2004 21:50:35 GMT]]></title><description><![CDATA[<p>flenders schrieb:</p>
<blockquote>
<p>Kompilierst du mit UNICODE? Das wird nämlich laut Doku erwartet:</p>
</blockquote>
<p>es gibt zwei Möglichkeiten:</p>
<p>1. er muß mit UNICODE kompiliert haben, wenn er das aktuelle Platform SDK hat, denn sonst würde der Compiler sich beschweren darüber, daß versucht wird, einen ANSI-String-Zeiger einem UNICODE-String-Zeiger zuzuweisen.</p>
<p>2. er hat noch ein älteres Platform SDK(für Win95/98/ME), in dem sich folgende Deklaration für shi2_path findet:</p>
<pre><code class="language-cpp">LPTSTR  shi2_path;
</code></pre>
<p>dann ist es egal, ob er mit UNICODE oder ohne kompiliert (Win95/98/ME werden aber mit der UNICODE-Version wahrscheinlich nichts anfangen können)</p>
<p>Diese Funktion ist als etwas besonderes, vielleicht sollte er auch einmal schreiben, auf welcher Windows-Version er diesen Code probiert (da gibt es ja nach MSDN noch ein paar Besonderheiten für Win95/98/ME)</p>
<p>es ist also nicht ganz so einfach in diesem Bereich. Ich denke, er sollte für Win95/98/ME die share_info_50-Struktur verwenden, und die anderen Parameter(-Anforderungen) für diesen Fall beachten</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/467976</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/467976</guid><dc:creator><![CDATA[Probe-Nutzer]]></dc:creator><pubDate>Wed, 25 Feb 2004 21:50:35 GMT</pubDate></item><item><title><![CDATA[Reply to freigeben??? on Wed, 25 Feb 2004 22:08:49 GMT]]></title><description><![CDATA[<p>Mit der share_info_50-Struktur gibt's auch ein Beispiel in der MSDN-Library <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>
]]></description><link>https://www.c-plusplus.net/forum/post/467991</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/467991</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Wed, 25 Feb 2004 22:08:49 GMT</pubDate></item><item><title><![CDATA[Reply to freigeben??? on Mon, 01 Mar 2004 13:00:22 GMT]]></title><description><![CDATA[<p>ich hab aber windows xp</p>
<p>und wie kann ich mit UNICODE kompiliern</p>
]]></description><link>https://www.c-plusplus.net/forum/post/470749</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/470749</guid><dc:creator><![CDATA[winnie der puhbaer]]></dc:creator><pubDate>Mon, 01 Mar 2004 13:00:22 GMT</pubDate></item><item><title><![CDATA[Reply to freigeben??? on Mon, 01 Mar 2004 21:59:59 GMT]]></title><description><![CDATA[<p>Ich muss gestehen, dass ich das auch noch nie gemacht haben <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
<p>Aber ich meine, dass man UNICODE und/oder? _UNICODE bei den Präprozessor-Definitionen in den Projekteinstellungen eintragen muss <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f576.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--sunglasses"
      title=":sunglasses:"
      alt="🕶"
    /></p>
<p>Falls das falsch ist - es gibt hier garantiert jemanden, der wirklich weiß, wie es geht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/471203</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/471203</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Mon, 01 Mar 2004 21:59:59 GMT</pubDate></item><item><title><![CDATA[Reply to freigeben??? on Tue, 02 Mar 2004 01:55:20 GMT]]></title><description><![CDATA[<p>flenders schrieb:</p>
<blockquote>
<p>_UNICODE bei den Präprozessor-Definitionen in den Projekteinstellungen eintragen muss</p>
</blockquote>
<p>ja, genau, _UNICODE eintragen unter Menü &quot;Projekt&quot;-&gt;&quot;Einstellungen&quot;, dann Registerkarte &quot;C/C++&quot;, und unter &quot;Präprozessor-Definitionen&quot; _MBCS ersetzen durch _UNICODE</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/471275</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/471275</guid><dc:creator><![CDATA[Probe-Nutzer]]></dc:creator><pubDate>Tue, 02 Mar 2004 01:55:20 GMT</pubDate></item><item><title><![CDATA[Reply to freigeben??? on Wed, 31 Mar 2004 17:20:32 GMT]]></title><description><![CDATA[<p>klappt leider auch nich</p>
<p>sorry das ich so lange nich geantwortet hab mein internet is war andauernd futsch</p>
]]></description><link>https://www.c-plusplus.net/forum/post/492587</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/492587</guid><dc:creator><![CDATA[winnie der puhbaer]]></dc:creator><pubDate>Wed, 31 Mar 2004 17:20:32 GMT</pubDate></item></channel></rss>