<?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[RasSetEntryProperties Problem]]></title><description><![CDATA[<p>Hallo zusammen,<br />
ich versuche gerade unter Windows 2000 die Funktion RasSetEntryProperties-Funktion aufzurufen. Ich bekomme jedoch immer 632 = ERROR_INVALID_SIZE (ras.h) zurück. Unter Windows XP funktioniert der Code jedoch einwandfrei. Das Programm soll aber letztendlich auf Win2000 und WinXP laufen. Ich sitze bereits einige Stunden vor diesem Problem. Bitte helft mir <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /> Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/95975/rassetentryproperties-problem</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 18:29:04 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/95975.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 26 Dec 2004 14:28:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to RasSetEntryProperties Problem on Sun, 26 Dec 2004 14:28:31 GMT]]></title><description><![CDATA[<p>Hallo zusammen,<br />
ich versuche gerade unter Windows 2000 die Funktion RasSetEntryProperties-Funktion aufzurufen. Ich bekomme jedoch immer 632 = ERROR_INVALID_SIZE (ras.h) zurück. Unter Windows XP funktioniert der Code jedoch einwandfrei. Das Programm soll aber letztendlich auf Win2000 und WinXP laufen. Ich sitze bereits einige Stunden vor diesem Problem. Bitte helft mir <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /> Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/681096</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/681096</guid><dc:creator><![CDATA[Herrmann]]></dc:creator><pubDate>Sun, 26 Dec 2004 14:28:31 GMT</pubDate></item><item><title><![CDATA[Reply to RasSetEntryProperties Problem on Sun, 26 Dec 2004 14:36:54 GMT]]></title><description><![CDATA[<p>Etwas Code wäre hilfreich.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/681104</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/681104</guid><dc:creator><![CDATA[Christoph]]></dc:creator><pubDate>Sun, 26 Dec 2004 14:36:54 GMT</pubDate></item><item><title><![CDATA[Reply to RasSetEntryProperties Problem on Sun, 26 Dec 2004 19:06:55 GMT]]></title><description><![CDATA[<p>@cd9000, hier mal etwas Code.</p>
<pre><code class="language-cpp">RASDEVINFO *pDevInfo = ...
  ...
  ...
  RASENTRY entry;
  DWORD nSize = sizeof( RASENTRY );

  if ( !pDevInfo )
    return false;

  memset( &amp;entry, NULL, nSize );
  entry.dwSize = sizeof( entry );
  entry.dwfOptions |= RASEO_IpHeaderCompression;
  entry.dwfOptions |= RASEO_RemoteDefaultGateway;
  entry.dwfOptions |= RASEO_SwCompression;
  entry.dwfNetProtocols = RASNP_Ip;
  entry.dwFramingProtocol = RASFP_Ppp;

  strcpy( entry.szLocalPhoneNumber, &quot;0&quot; );
  strcpy( entry.szDeviceName, pDevInfo-&gt;szDeviceName );
  strcpy( entry.szDeviceType, pDevInfo-&gt;szDeviceType );

  dwErr = RasSetEntryProperties( NULL, m_pName, &amp;entry, nSize, NULL, 0 );
  ...
</code></pre>
<p>Habe noch etwas in <a href="http://www.google.de" rel="nofollow">www.google.de</a> gesucht und dabei<br />
folgende (jedoch unschöne) Problemlösung gefunden.</p>
<pre><code class="language-cpp">#define WINVER 0x400
</code></pre>
<p>Irgendwie ist die RASENTRY-Struktur auf unterschiedlichen Windowssystem verschieden groß (mehr oder weniger Elemente). Dadurch, dass ich nun die Windowsversion fest setze kommt RasSetEntryProperties plötzlich mit dem Code ohne Probleme klar <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /> Für eine andere Problemlösung wäre ich haher immer noch dankbar.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/681281</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/681281</guid><dc:creator><![CDATA[Herrmann]]></dc:creator><pubDate>Sun, 26 Dec 2004 19:06:55 GMT</pubDate></item><item><title><![CDATA[Reply to RasSetEntryProperties Problem on Sun, 26 Dec 2004 22:30:19 GMT]]></title><description><![CDATA[<p>wie du es gemacht hast ist die problem lösung.<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rras/rras/rasentry_str.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rras/rras/rasentry_str.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/681363</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/681363</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Sun, 26 Dec 2004 22:30:19 GMT</pubDate></item></channel></rss>