RE: Re: Ok.... WinAmp Plugin
John Lemp, over at illdata has made a winampcontroller class that will pretty much answer any questions you have. It is part of a C# Winamp Server (that I have yet to get working), but his winampcontroller class works like a charm. Take a look at it:
http://illdata.com/main/stories/2003...rInCSharp.html
Dillon
>Halstein,
>
>>But what is it for C#?
>
>using System.Runtime.InteropServices;
>
>--
>
>[DllImport("user32.dll", CharSet=CharSet.Auto)]
>static extern int FindWindow(string lpClassName, string lpWindowName);
>
>--
>
>Console.WriteLine("WinAmp hwnd: 0x{0:X}",
> FindWindow("Winamp v1.x", null) );
>
>
>>And... How can I use WM commands?
>
>[DllImport("user32.dll", CharSet=CharSet.Auto)]
>static extern int SendMessage(int hWnd, int Msg, int wParam, int
>lParam);
>
>const int WM_USER = 0x400;
>
>--
>
>Console.WriteLine("WinAmp version: 0x{0:X}",
> SendMessage(hwndWinamp, WM_USER, 0, 0) );
>
>
>You’ll probably have to add a few overloads for SendMessage to get the
>different parameter types right. Take a look at the PInvoke docs and
>samples in the .NET SDK.
>
>
>Mattias
>
>====================================
>Mattias Sjögren - mattias @ mvps.org
>http://www.msjogren.net/dotnet/
>
>CodeHound - The Software Developer’s Search Engine
>http://www.codehound.com
Message sent from http://www.aewnet.com