<?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[Computer wählen Dialog]]></title><description><![CDATA[<p>Ich möchte einen Auswahldialog für Computer anzeigen.<br />
Mir ist nur schleierhaft, wie ich den Startpfad auf<br />
die Netzwerkumgebung umbiege. Ich habe div. Varianten<br />
mit CSIDL_NETHOOD und SHGetSpecialFolderPath versucht.<br />
Nie lande ich in der Netzwerkumgebung...</p>
<p>Hier mein letzter Versuch...Hoffe ihr könnt helfen <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>
<pre><code class="language-cpp">BROWSEINFO bi;
    TCHAR   szDisplayName[MAX_PATH];
    LPITEMIDLIST    ppidl = NULL;
    LPMALLOC  pMalloc = NULL;
    ZeroMemory(&amp;bi, sizeof(bi));
	bi.pidlRoot = ppidl;
	bi.lpfn = NULL;
    bi.hwndOwner = NULL;
    bi.pszDisplayName = szDisplayName;
	bi.lpszTitle = TEXT(&quot;Wählen Sie bitte einen PC aus.&quot;);
    bi.ulFlags = BIF_BROWSEFORCOMPUTER;
    ppidl = SHBrowseForFolder(&amp;bi); 
//SHGetSpecialFolderPath(NULL, szNetworkHoodFolder, CSIDL_NETHOOD, FALSE);

if ( ppidl != 0 ) 
{ 
	// get the name of the folder 
	TCHAR path[MAX_PATH]; 
	if ( SHGetPathFromIDList ( ppidl, path ) ) 
	{
		MessageBox(path); 
	} // free memory used 
	IMalloc * imalloc = 0; 
	if ( SUCCEEDED( SHGetMalloc ( &amp;imalloc )) ) 
	{ imalloc-&gt;Free ( ppidl ); 
	imalloc-&gt;Release ( );
	} 
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/209683/computer-wählen-dialog</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 06:45:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/209683.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 02 Apr 2008 10:50:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Computer wählen Dialog on Wed, 02 Apr 2008 10:50:11 GMT]]></title><description><![CDATA[<p>Ich möchte einen Auswahldialog für Computer anzeigen.<br />
Mir ist nur schleierhaft, wie ich den Startpfad auf<br />
die Netzwerkumgebung umbiege. Ich habe div. Varianten<br />
mit CSIDL_NETHOOD und SHGetSpecialFolderPath versucht.<br />
Nie lande ich in der Netzwerkumgebung...</p>
<p>Hier mein letzter Versuch...Hoffe ihr könnt helfen <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>
<pre><code class="language-cpp">BROWSEINFO bi;
    TCHAR   szDisplayName[MAX_PATH];
    LPITEMIDLIST    ppidl = NULL;
    LPMALLOC  pMalloc = NULL;
    ZeroMemory(&amp;bi, sizeof(bi));
	bi.pidlRoot = ppidl;
	bi.lpfn = NULL;
    bi.hwndOwner = NULL;
    bi.pszDisplayName = szDisplayName;
	bi.lpszTitle = TEXT(&quot;Wählen Sie bitte einen PC aus.&quot;);
    bi.ulFlags = BIF_BROWSEFORCOMPUTER;
    ppidl = SHBrowseForFolder(&amp;bi); 
//SHGetSpecialFolderPath(NULL, szNetworkHoodFolder, CSIDL_NETHOOD, FALSE);

if ( ppidl != 0 ) 
{ 
	// get the name of the folder 
	TCHAR path[MAX_PATH]; 
	if ( SHGetPathFromIDList ( ppidl, path ) ) 
	{
		MessageBox(path); 
	} // free memory used 
	IMalloc * imalloc = 0; 
	if ( SUCCEEDED( SHGetMalloc ( &amp;imalloc )) ) 
	{ imalloc-&gt;Free ( ppidl ); 
	imalloc-&gt;Release ( );
	} 
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1485092</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1485092</guid><dc:creator><![CDATA[Shell32off]]></dc:creator><pubDate>Wed, 02 Apr 2008 10:50:11 GMT</pubDate></item><item><title><![CDATA[Reply to Computer wählen Dialog on Wed, 02 Apr 2008 11:40:11 GMT]]></title><description><![CDATA[<p>Ich setze pidlRoot vor dem Aufruf auf den Wert, den</p>
<pre><code class="language-cpp">SHGetSpecialFolderLocation(bi.hwndOwner,CSIDL_NETWORK,...)
</code></pre>
<p>liefert</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1485140</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1485140</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 02 Apr 2008 11:40:11 GMT</pubDate></item><item><title><![CDATA[Reply to Computer wählen Dialog on Wed, 02 Apr 2008 14:31:43 GMT]]></title><description><![CDATA[<p>Ok, hat geklappt! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1485268</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1485268</guid><dc:creator><![CDATA[Shell32off]]></dc:creator><pubDate>Wed, 02 Apr 2008 14:31:43 GMT</pubDate></item></channel></rss>