<?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[Ip Helper Api Problem]]></title><description><![CDATA[<p>Hallo ich habe keine Ahnung was hier schief läuft vielleicht ihr?</p>
<pre><code>int main()
{
	IP_ADAPTER_INFO AdapterInfo[16];            
    DWORD dwBufLen = sizeof(AdapterInfo);       

    DWORD dwStatus = GetAdaptersInfo(            
                 AdapterInfo,                          
                  &amp;dwBufLen); 

	DWORD index = 0;

	DWORD du = GetAdapterIndex((LPWSTR)AdapterInfo-&gt;AdapterName,&amp;index);

	printf(&quot;Erneuern der Ip Adresse\n&quot;);

    AddIPAddress(inet_addr(&quot;192.168.0.40&quot;),inet_addr(&quot;255.255.255.0&quot;),index,NULL,NULL);

    LPVOID lpMsgBuf;
	FormatMessage( 
    FORMAT_MESSAGE_ALLOCATE_BUFFER | 
    FORMAT_MESSAGE_FROM_SYSTEM | 
    FORMAT_MESSAGE_IGNORE_INSERTS,
    NULL,
    du,
    MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
    (LPTSTR) &amp;lpMsgBuf,
    0,
    NULL );

	printf(&quot;%s&quot;,(char*)lpMsgBuf);

	system(&quot;pause&quot;);
	return 0;
}
</code></pre>
<p>MFG Danke im Vorraus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/160285/ip-helper-api-problem</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 21:47:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/160285.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 24 Sep 2006 14:19:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ip Helper Api Problem on Sun, 24 Sep 2006 14:19:39 GMT]]></title><description><![CDATA[<p>Hallo ich habe keine Ahnung was hier schief läuft vielleicht ihr?</p>
<pre><code>int main()
{
	IP_ADAPTER_INFO AdapterInfo[16];            
    DWORD dwBufLen = sizeof(AdapterInfo);       

    DWORD dwStatus = GetAdaptersInfo(            
                 AdapterInfo,                          
                  &amp;dwBufLen); 

	DWORD index = 0;

	DWORD du = GetAdapterIndex((LPWSTR)AdapterInfo-&gt;AdapterName,&amp;index);

	printf(&quot;Erneuern der Ip Adresse\n&quot;);

    AddIPAddress(inet_addr(&quot;192.168.0.40&quot;),inet_addr(&quot;255.255.255.0&quot;),index,NULL,NULL);

    LPVOID lpMsgBuf;
	FormatMessage( 
    FORMAT_MESSAGE_ALLOCATE_BUFFER | 
    FORMAT_MESSAGE_FROM_SYSTEM | 
    FORMAT_MESSAGE_IGNORE_INSERTS,
    NULL,
    du,
    MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
    (LPTSTR) &amp;lpMsgBuf,
    0,
    NULL );

	printf(&quot;%s&quot;,(char*)lpMsgBuf);

	system(&quot;pause&quot;);
	return 0;
}
</code></pre>
<p>MFG Danke im Vorraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143464</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143464</guid><dc:creator><![CDATA[Cefour]]></dc:creator><pubDate>Sun, 24 Sep 2006 14:19:39 GMT</pubDate></item><item><title><![CDATA[Reply to Ip Helper Api Problem on Sun, 24 Sep 2006 14:22:01 GMT]]></title><description><![CDATA[<p>Wie wärs mit ner genaueren Fehlerbeschreiben...was hier schief geht... <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1143467</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143467</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sun, 24 Sep 2006 14:22:01 GMT</pubDate></item><item><title><![CDATA[Reply to Ip Helper Api Problem on Sun, 24 Sep 2006 14:29:52 GMT]]></title><description><![CDATA[<p>Die GetAdapterIndex läuft hier schief !</p>
<p>Die Fehlermeldung ist: Die Angegebene Netzwerkresource bzw. das angegebene Gerät ist nicht verfügbar</p>
<p>was aber nicht sein kann<br />
Wenn ich vorher alles Abfrage habe ich eine Beschreibung, einen Adapter Namen usw..</p>
<p>Ich hoffer ihr könnt mir helfen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143476</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143476</guid><dc:creator><![CDATA[Cefour]]></dc:creator><pubDate>Sun, 24 Sep 2006 14:29:52 GMT</pubDate></item><item><title><![CDATA[Reply to Ip Helper Api Problem on Sun, 24 Sep 2006 15:54:57 GMT]]></title><description><![CDATA[<p>Cefour schrieb:</p>
<blockquote>
<p>was aber nicht sein kann</p>
</blockquote>
<p>Das ist aber so. Das, was Du als ersten Parameter in die Funktion hineingibst, ist halt kein LPWSTR, sondern nur LPSTR. Sei froh, daß Du wenigstens einen Fehler bekommst und das nicht gleich die ganze Anwendung abschmiert.</p>
<p>Ein Cast konvertiert halt nichts. Ein Cast ist lediglich der Hinweis darauf, daß Du schlauer als der Compiler bist (was in diesem Fall nicht zutrifft). Ein Cast konvertiert aber garantiert nicht Daten von einem Format ins Andere, das mußt Du selbst erledigen. In Deinem Fall kann das mit der MultiByteToWideChar-Funktion passieren.</p>
<p>Und das nächste mal bekommst Du bei solchen merkwürdigen Casts bitte gleich selber Flecken und machst die von selbst da wech.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143506</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143506</guid><dc:creator><![CDATA[Gästchen]]></dc:creator><pubDate>Sun, 24 Sep 2006 15:54:57 GMT</pubDate></item><item><title><![CDATA[Reply to Ip Helper Api Problem on Sun, 24 Sep 2006 16:12:40 GMT]]></title><description><![CDATA[<p>So ich habe es gemacht wie Gästchen vorgeschlagen hat funktioniert immer nocht nicht<br />
Die Fehlermeldung ist immer noch die gleiche!!!!</p>
<pre><code>int main()
{
	IP_ADAPTER_INFO AdapterInfo[16];            
    DWORD dwBufLen = sizeof(AdapterInfo);       

    DWORD dwStatus = GetAdaptersInfo(            
                 AdapterInfo,                          
                  &amp;dwBufLen); 

	PIP_ADAPTER_INFO pAdapter = AdapterInfo;
	DWORD index = 0;
	WCHAR ada[200];
	MultiByteToWideChar(CP_ACP,0,pAdapter-&gt;AdapterName,-1,ada,sizeof(ada));

	DWORD du = GetAdapterIndex(ada,&amp;index);

	printf(&quot;Erneuern der Ip Adresse\n&quot;);

	AddIPAddress(inet_addr(&quot;192.168.0.40&quot;),inet_addr(&quot;255.255.255.0&quot;),index,NULL,NULL);

    LPVOID lpMsgBuf;
	FormatMessage( 
    FORMAT_MESSAGE_ALLOCATE_BUFFER | 
    FORMAT_MESSAGE_FROM_SYSTEM | 
    FORMAT_MESSAGE_IGNORE_INSERTS,
    NULL,
    du,
    MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
    (LPTSTR) &amp;lpMsgBuf,
    0,
    NULL );

	printf(&quot;%s&quot;,(char*)lpMsgBuf);

	system(&quot;pause&quot;);
	return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1143510</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143510</guid><dc:creator><![CDATA[Cefour]]></dc:creator><pubDate>Sun, 24 Sep 2006 16:12:40 GMT</pubDate></item><item><title><![CDATA[Reply to Ip Helper Api Problem on Sun, 24 Sep 2006 16:47:19 GMT]]></title><description><![CDATA[<p>Dann geht es halt immer noch nicht. Aber was ist überhaupt der Sinn von GetAdapterIndex, warum nimmst Du nicht einfach gleich pAdapter-&gt;Index?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143521</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143521</guid><dc:creator><![CDATA[Gästchen]]></dc:creator><pubDate>Sun, 24 Sep 2006 16:47:19 GMT</pubDate></item><item><title><![CDATA[Reply to Ip Helper Api Problem on Sun, 24 Sep 2006 16:51:51 GMT]]></title><description><![CDATA[<p>Weil ich wenn ich<br />
das so mache</p>
<pre><code>AddIPAddress(inet_addr(&quot;192.168.0.40&quot;),inet_addr(&quot;255.255.255.0&quot;),pAdapter-&gt;Index
		                       ,NULL,NULL);
</code></pre>
<p>Die Fehlermeldung bekomme Falscher Parameter</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143525</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143525</guid><dc:creator><![CDATA[Cefour]]></dc:creator><pubDate>Sun, 24 Sep 2006 16:51:51 GMT</pubDate></item><item><title><![CDATA[Reply to Ip Helper Api Problem on Sun, 24 Sep 2006 17:02:20 GMT]]></title><description><![CDATA[<p>Nach meiner Dokumentation sind die letzten beiden Parameter tatsächlich falsch, da hat die Funktion also recht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143530</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143530</guid><dc:creator><![CDATA[Gästchen]]></dc:creator><pubDate>Sun, 24 Sep 2006 17:02:20 GMT</pubDate></item><item><title><![CDATA[Reply to Ip Helper Api Problem on Sun, 24 Sep 2006 17:13:45 GMT]]></title><description><![CDATA[<p><strong>@Gästchen:</strong></p>
<p>Cefour schrieb:</p>
<blockquote>
<p>So ich habe es gemacht wie Gästchen vorgeschlagen hat funktioniert immer nocht nicht Die Fehlermeldung ist immer noch die gleiche!!!!</p>
</blockquote>
<p>LOOOOL, vllt mal lieber die Fresse halten, wer hat hier keine Ahnung <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="😃"
    /> <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="😃"
    /> ? ...:</p>
<p>Gästchen schrieb:</p>
<blockquote>
<p>Gästchen schrieb:</p>
<blockquote>
<p>CodeFinder schrieb:</p>
<blockquote>
<p>Nur zu dumm, dass es das bei Executeables gar nicht gibt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_down"
      title=":-1:"
      alt="👎"
    /> .</p>
</blockquote>
<p>Schwachfug. Das gibt es natürlich auch bei Executables. Alles was Du brauchst ist NTFS. Bevor Du solchen Quatschkram behauptest, solltest Du das mal <strong>ausprobieren</strong>!</p>
<p>Man man, wie blöd seid Ihr eigentlich? Ebenfalls <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_down"
      title=":-1:"
      alt="👎"
    /></p>
</blockquote>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1143536</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143536</guid><dc:creator><![CDATA[helper]]></dc:creator><pubDate>Sun, 24 Sep 2006 17:13:45 GMT</pubDate></item><item><title><![CDATA[Reply to Ip Helper Api Problem on Sun, 24 Sep 2006 17:19:15 GMT]]></title><description><![CDATA[<p>So ist es auch möglich mir mal ein bisschen hilfe zu geben!!!!!!!!!!<br />
Wäre euch echt verbunden</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143540</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143540</guid><dc:creator><![CDATA[Cefour]]></dc:creator><pubDate>Sun, 24 Sep 2006 17:19:15 GMT</pubDate></item><item><title><![CDATA[Reply to Ip Helper Api Problem on Sun, 24 Sep 2006 17:24:15 GMT]]></title><description><![CDATA[<p>Hm...aber geh die Sache mal anders ran:<br />
Mal angenommen, das hier stimmt:</p>
<blockquote>
<p>Die Fehlermeldung ist: Die Angegebene Netzwerkresource bzw. das angegebene Gerät ist nicht verfügbar</p>
</blockquote>
<p>Dann versuch doch mal n anderen Adapter...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143544</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143544</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sun, 24 Sep 2006 17:24:15 GMT</pubDate></item><item><title><![CDATA[Reply to Ip Helper Api Problem on Sun, 24 Sep 2006 19:02:06 GMT]]></title><description><![CDATA[<p>sag mal Cefour bist du dumm? die letzten beiden parameter sind out-Parameter! da muss du eine vernünftige adresse übergeben und nicht NULL.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143599</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143599</guid><dc:creator><![CDATA[helper]]></dc:creator><pubDate>Sun, 24 Sep 2006 19:02:06 GMT</pubDate></item><item><title><![CDATA[Reply to Ip Helper Api Problem on Sun, 24 Sep 2006 19:12:49 GMT]]></title><description><![CDATA[<p>helper schrieb:</p>
<blockquote>
<p>sag mal Cefour bist du dumm? die letzten beiden parameter sind out-Parameter! da muss du eine vernünftige adresse übergeben und nicht NULL.</p>
</blockquote>
<p>Das stimmt zwar, aber in erste Linie gehts es darum:</p>
<p>Cefour schrieb:</p>
<blockquote>
<p>Die GetAdapterIndex läuft hier schief !</p>
<p>Die Fehlermeldung ist: Die Angegebene Netzwerkresource bzw. das angegebene Gerät ist nicht verfügbar</p>
<p>was aber nicht sein kann<br />
Wenn ich vorher alles Abfrage habe ich eine Beschreibung, einen Adapter Namen usw..</p>
<p>Ich hoffer ihr könnt mir helfen</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1143611</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143611</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sun, 24 Sep 2006 19:12:49 GMT</pubDate></item><item><title><![CDATA[Reply to Ip Helper Api Problem on Sun, 24 Sep 2006 22:30:17 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/20504">@helper</a><br />
ich bin weder dumm noch beschränkt um deine Frage zu beantworten.</p>
<p>@all ich habe das Problem selbst beseitigt</p>
<p>Aber eins muss ich leider sagen die Board hat leider nicht mehr den Flair wie es einmall hatte. Man wird hier beleidigt von Leuten die überhaubt nix drauf haben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143662</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143662</guid><dc:creator><![CDATA[Cefour]]></dc:creator><pubDate>Sun, 24 Sep 2006 22:30:17 GMT</pubDate></item><item><title><![CDATA[Reply to Ip Helper Api Problem on Sun, 24 Sep 2006 22:59:49 GMT]]></title><description><![CDATA[<p>Cefour schrieb:</p>
<blockquote>
<p>@all ich habe das Problem selbst beseitigt</p>
</blockquote>
<p>Sagst du uns auch wie <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>Cefour schrieb:</p>
<blockquote>
<p>Aber eins muss ich leider sagen die Board hat leider nicht mehr den Flair wie es einmall hatte. Man wird hier beleidigt von Leuten die überhaubt nix drauf haben.</p>
</blockquote>
<p>Jo das liegt wohl an den ungereggten Trolls... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143666</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143666</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sun, 24 Sep 2006 22:59:49 GMT</pubDate></item><item><title><![CDATA[Reply to Ip Helper Api Problem on Sun, 24 Sep 2006 23:24:44 GMT]]></title><description><![CDATA[<p>Cefour schrieb:</p>
<blockquote>
<p>@all ich habe das Problem selbst beseitigt</p>
</blockquote>
<p>warum sagst du dann nicht wie du es gemacht hast?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143673</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143673</guid><dc:creator><![CDATA[helper]]></dc:creator><pubDate>Sun, 24 Sep 2006 23:24:44 GMT</pubDate></item><item><title><![CDATA[Reply to Ip Helper Api Problem on Sun, 24 Sep 2006 23:45:01 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/20504">@helper</a>: Warum müssen mich eigentlich alle immer wiederholen ?! ...Doppelt gemoppelt hält besser...oder wie?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143676</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143676</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sun, 24 Sep 2006 23:45:01 GMT</pubDate></item><item><title><![CDATA[Reply to Ip Helper Api Problem on Mon, 25 Sep 2006 09:47:20 GMT]]></title><description><![CDATA[<p>schaumal in dein anderen thread</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143886</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143886</guid><dc:creator><![CDATA[DaRpH]]></dc:creator><pubDate>Mon, 25 Sep 2006 09:47:20 GMT</pubDate></item></channel></rss>