<?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[Netzwerk Behandlung]]></title><description><![CDATA[<p>Hallo Leute ich wollte gerne ein Programm schreiben die meine Netzwerkverbindungen automatisch neu Konfiguriert.<br />
Also das heißt meinem Netzwerk Adapter eine neue Ip zuweisen die ich vorher bestimmt habe sowie ein neues Gateway und DNS SERVER.<br />
Gibt es rein Zufällig Winapi Funktione dafür, wenn ja welche?<br />
Wenn nein, wie kann ich es trotzdem machen?<br />
Vielen Dank</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/160233/netzwerk-behandlung</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/160233.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 23 Sep 2006 14:06:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Netzwerk Behandlung on Sat, 23 Sep 2006 14:06:21 GMT]]></title><description><![CDATA[<p>Hallo Leute ich wollte gerne ein Programm schreiben die meine Netzwerkverbindungen automatisch neu Konfiguriert.<br />
Also das heißt meinem Netzwerk Adapter eine neue Ip zuweisen die ich vorher bestimmt habe sowie ein neues Gateway und DNS SERVER.<br />
Gibt es rein Zufällig Winapi Funktione dafür, wenn ja welche?<br />
Wenn nein, wie kann ich es trotzdem machen?<br />
Vielen Dank</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143085</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143085</guid><dc:creator><![CDATA[Cefour]]></dc:creator><pubDate>Sat, 23 Sep 2006 14:06:21 GMT</pubDate></item><item><title><![CDATA[Reply to Netzwerk Behandlung on Sat, 23 Sep 2006 17:40:55 GMT]]></title><description><![CDATA[<p>AFAIK gibt es dafür nichts, aber das wäre mit nem Treiber eigentlich realisierbar.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143173</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143173</guid><dc:creator><![CDATA[Ominion|off]]></dc:creator><pubDate>Sat, 23 Sep 2006 17:40:55 GMT</pubDate></item><item><title><![CDATA[Reply to Netzwerk Behandlung on Sat, 23 Sep 2006 23:24:33 GMT]]></title><description><![CDATA[<p>Die IP-Adressen sind in der regedit gespeichert. Such dort einfach mal nach der IP-Adresse, die Du momentan hast. Dann wirst Du bestimmt fündig.</p>
<p>Müsste unter HKEY_LOCAL_MACHINE -&gt; SYSTEM sein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143272</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143272</guid><dc:creator><![CDATA[napsio]]></dc:creator><pubDate>Sat, 23 Sep 2006 23:24:33 GMT</pubDate></item><item><title><![CDATA[Reply to Netzwerk Behandlung on Sat, 23 Sep 2006 23:27:22 GMT]]></title><description><![CDATA[<p>Du kannst auch z.B. die ipconfig.exe von deiner anwendung aufrufen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143273</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143273</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Sat, 23 Sep 2006 23:27:22 GMT</pubDate></item><item><title><![CDATA[Reply to Netzwerk Behandlung on Sun, 24 Sep 2006 08:48:10 GMT]]></title><description><![CDATA[<p>KÖNNTE mit der IP Helper API gehen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143325</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143325</guid><dc:creator><![CDATA[stichwort]]></dc:creator><pubDate>Sun, 24 Sep 2006 08:48:10 GMT</pubDate></item><item><title><![CDATA[Reply to Netzwerk Behandlung on Sun, 24 Sep 2006 10:45:28 GMT]]></title><description><![CDATA[<p>He super die Idee mit der Regestrie<br />
das ist natürlich machbar und irgendwie kein Problem mehr<br />
thx @napsio und den anderen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143388</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143388</guid><dc:creator><![CDATA[Cefour]]></dc:creator><pubDate>Sun, 24 Sep 2006 10:45:28 GMT</pubDate></item><item><title><![CDATA[Reply to Netzwerk Behandlung on Mon, 25 Sep 2006 09:42:04 GMT]]></title><description><![CDATA[<p>Natürlich geht das.</p>
<p>Musst den netsh befehl ausführen.</p>
<p>so: (für mehr schau dir den netsh befehl an)</p>
<pre><code class="language-cpp">// TODO: Addressen setzen

STARTUPINFO sinfo;
PROCESS_INFORMATION pinfo;

char* buffer[1000];
sprintf(buffer, &quot;netsh interface ip set address name=\&quot;%s\&quot; source=static addr=%s mask=%s gateway=%s gwmetric&quot;, adaptername, ipadr, ipsubnetmsk, gateway);

ZeroMemory( &amp;sinfo, sizeof(STARTUPINFO));
sinfo.cb = sizeof(STARTUPINFO);
sinfo.wShowWindow=SW_HIDE;
sinfo.dwFlags=STARTF_USESIZE|STARTF_USESHOWWINDOW;
sinfo.dwXSize=0;
sinfo.dwYSize=0;
ZeroMemory( &amp;pinfo, sizeof(PROCESS_INFORMATION) );

if( !CreateProcess( NULL, // name
		buffer,// Command
		NULL,
		NULL,  
		FALSE,
		0,// no
		NULL, // parent
		NULL,// parent
		&amp;sinfo,
		&amp;pinfo )
) {
	// TODO: Error
}

// Wait for exit.
WaitForSingleObject( pinfo.hProcess, INFINITE );
CloseHandle( pinfo.hProcess );
CloseHandle( pinfo.hThread );
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1143883</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143883</guid><dc:creator><![CDATA[DaRpH]]></dc:creator><pubDate>Mon, 25 Sep 2006 09:42:04 GMT</pubDate></item></channel></rss>