<?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[Probleme mit SendMessage um infos aus Winamp auszulesen]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich schreibe mir gerade ne kleine externe Applikation, welche unter anderem mit Winamp &quot;kommuniziert&quot;.<br />
dabei verwende ich unter anderem folgende Funktion:</p>
<p>#define IPC_GETINFO 126<br />
/* (requires Winamp 2.05+)<br />
** int inf=SendMessage(hwnd_winamp,WM_WA_IPC,mode,IPC_GETINFO);<br />
** IPC_GETINFO returns info about the current playing song. The value<br />
** it returns depends on the value of 'mode'.<br />
** Mode Meaning<br />
** ------------------<br />
** 0 Samplerate (i.e. 44100)<br />
** 1 Bitrate (i.e. 128)<br />
** 2 Channels (i.e. 2)<br />
** 3 (5+) Video LOWORD=w HIWORD=h<br />
** 4 (5+) &gt; 65536, string (video description)<br />
*/<br />
hab sie aus ner Header Datei von Winamp raus.</p>
<p>Funktioniert auch wenn ich als &quot;mode&quot; 0, 1 oder 2 übergebe. würde aber auch gerne den Titel des Songs auslesen: wie funktioniert das? muss ich da die funktion einem Char array zuweisen?</p>
<p>bitte um hilfe!</p>
<p>lg Stefan</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/125138/probleme-mit-sendmessage-um-infos-aus-winamp-auszulesen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Jul 2026 22:44:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/125138.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Nov 2005 17:09:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Probleme mit SendMessage um infos aus Winamp auszulesen on Thu, 03 Nov 2005 17:09:47 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich schreibe mir gerade ne kleine externe Applikation, welche unter anderem mit Winamp &quot;kommuniziert&quot;.<br />
dabei verwende ich unter anderem folgende Funktion:</p>
<p>#define IPC_GETINFO 126<br />
/* (requires Winamp 2.05+)<br />
** int inf=SendMessage(hwnd_winamp,WM_WA_IPC,mode,IPC_GETINFO);<br />
** IPC_GETINFO returns info about the current playing song. The value<br />
** it returns depends on the value of 'mode'.<br />
** Mode Meaning<br />
** ------------------<br />
** 0 Samplerate (i.e. 44100)<br />
** 1 Bitrate (i.e. 128)<br />
** 2 Channels (i.e. 2)<br />
** 3 (5+) Video LOWORD=w HIWORD=h<br />
** 4 (5+) &gt; 65536, string (video description)<br />
*/<br />
hab sie aus ner Header Datei von Winamp raus.</p>
<p>Funktioniert auch wenn ich als &quot;mode&quot; 0, 1 oder 2 übergebe. würde aber auch gerne den Titel des Songs auslesen: wie funktioniert das? muss ich da die funktion einem Char array zuweisen?</p>
<p>bitte um hilfe!</p>
<p>lg Stefan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/907557</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907557</guid><dc:creator><![CDATA[FreedomRunner]]></dc:creator><pubDate>Thu, 03 Nov 2005 17:09:47 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit SendMessage um infos aus Winamp auszulesen on Thu, 01 Dec 2005 17:52:46 GMT]]></title><description><![CDATA[<p>Also, guck mal plz hier rein:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-p-is-931558.html#931558" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-p-is-931558.html#931558</a></p>
<p>Das ist nen angefangener Tread, den ich weitergeführt habe ^^</p>
<p>So zu deiner Frage hier die Antwort:</p>
<pre><code class="language-cpp">/*So sieht mein Codes aus Video habe ich vernachlässigt, da mein Progie nur dazu dient, als Fernbedienung zu fungieren, und dies ohne Monitor!*/
  //LE == Label edit !!! ^^ 

  //Handle deklarieren!
  HANDLE hwnd_winamp;

  //IPC_GETINFO
  /*
  ** Mode      Meaning
  ** ------------------
  ** 0         Samplerate (i.e. 44100)
  ** 1         Bitrate  (i.e. 128)
  ** 2         Channels (i.e. 2)
  ** 3 (5+)    Video LOWORD=w HIWORD=h
  ** 4 (5+)    &gt; 65536, string (video description)
  */
  //Fenster finden
  hwnd_winamp = FindWindow(&quot;Winamp v1.x&quot;,NULL);
  //Funktionen:
  LE_Bitrate-&gt;Text    = SendMessage(hwnd_winamp,WM_WA_IPC,1,IPC_GETINFO);
  LE_Samplerate-&gt;Text = SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_GETINFO);

  //Diese Funktion liefert nun mehrer Werte zurück muste abfangen habe ich via Switch - Case gelöst ^^
  switch (SendMessage(hwnd_winamp,WM_WA_IPC,2,IPC_GETINFO))
  {
    case 1:
    LE_Channels-&gt;Text   = &quot;Mono&quot;;
    break;
    case 2:
    LE_Channels-&gt;Text   = &quot;Stereo&quot;;
    break;
    case 3:
    LE_Channels-&gt;Text   = &quot;Undefiniert Anzahl Channels: &lt;3&quot;;
    break;
  }
</code></pre>
<p>Denke das hilft dir weiter!<br />
Wenn du ne Lösung fürs Titel auslesen gefunden hast, poste Sie bitte in meinen Tread thx <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="🙂"
    /></p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f576.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--sunglasses"
      title=":sunglasses:"
      alt="🕶"
    /></p>
<p>MFG<br />
Dennis</p>
]]></description><link>https://www.c-plusplus.net/forum/post/931567</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/931567</guid><dc:creator><![CDATA[cyby]]></dc:creator><pubDate>Thu, 01 Dec 2005 17:52:46 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit SendMessage um infos aus Winamp auszulesen on Thu, 01 Dec 2005 22:12:22 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=13512" rel="nofollow">c.rackwitz</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=10" rel="nofollow">ANSI C</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=4" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/931860</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/931860</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Thu, 01 Dec 2005 22:12:22 GMT</pubDate></item></channel></rss>