<?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[Arbeitsgruppe ermitteln]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich müsste die Arbeitsgruppe meines Rechners mit der WinApi ermitteln.<br />
Bisher habe ich es über die Registry gelöst, was aber in Zeiten von<br />
Vista sicher unglücklich und ohnehin frickelig ist...</p>
<p>Könnt ihr mir sagen, ob es entsprechende Funktionen gibt, die ich mir<br />
dazu ansehen sollte?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/199123/arbeitsgruppe-ermitteln</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 01:36:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/199123.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 29 Nov 2007 08:22:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Arbeitsgruppe ermitteln on Thu, 29 Nov 2007 08:22:04 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich müsste die Arbeitsgruppe meines Rechners mit der WinApi ermitteln.<br />
Bisher habe ich es über die Registry gelöst, was aber in Zeiten von<br />
Vista sicher unglücklich und ohnehin frickelig ist...</p>
<p>Könnt ihr mir sagen, ob es entsprechende Funktionen gibt, die ich mir<br />
dazu ansehen sollte?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1412015</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1412015</guid><dc:creator><![CDATA[Sharky007]]></dc:creator><pubDate>Thu, 29 Nov 2007 08:22:04 GMT</pubDate></item><item><title><![CDATA[Reply to Arbeitsgruppe ermitteln on Thu, 29 Nov 2007 08:37:30 GMT]]></title><description><![CDATA[<p>Hmm, ich glaube ich habe da was gefunden:</p>
<pre><code class="language-cpp">LPTSTR pszName=NULL;

DWORD dwLevel = 102;
LPWKSTA_INFO_102 pBuf = NULL;
NET_API_STATUS nStatus;
LPTSTR pszServerName = NULL;

nStatus = NetWkstaGetInfo(NULL, dwLevel, (LPBYTE *)&amp;pBuf);
if (nStatus == NERR_Success)
{
TCHAR szTemp[MAX_PATH]={'\0',};
int BufSize=sizeof(szTemp)/sizeof(TCHAR);
#ifdef UNICODE
_tcscpy(szTemp, pBuf-&gt;wki102_langroup);
#else
::WideCharToMultiByte(CP_ACP, 0, pBuf-&gt;wki102_langroup, -1, szTemp, BufSize, 0, 0);
#endif
lstrcpy(pszName, szTemp);

MessageBox(szTemp);

}

if (pBuf != NULL)
NetApiBufferFree(pBuf);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1412023</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1412023</guid><dc:creator><![CDATA[Sharky007]]></dc:creator><pubDate>Thu, 29 Nov 2007 08:37:30 GMT</pubDate></item></channel></rss>