Old 17th February 2007, 19:06   #1
Junior Member
Join Date: Feb 2007
Posts: 2
Events & C#

I know there are some post already asking how to do a command on a event ( like when a song starts ).

But can't really fond one regarding to C#
I hope anyone can help me with this problem.

I want to subclass the winamp window but i have no idea how to do this in C#, does anyone else know this?

I really hope anyone can help me.
Biffke is offline   Reply With Quote
Old 18th February 2007, 10:19   #2
Join Date: Sep 2006
Posts: 89
Subclassing an external application is quite a tricky job. You will have to write a small .dll (in unmanaged C++) and inject it in Winamp's thread. Dll will have to contain a code to subclass a window and communicate to external application to notify whan messages arrive.
Do some Googling for answers on how to do this. It's too complicated to explain here.
Tardymo is offline   Reply With Quote
Old 18th February 2007, 22:22   #3
Junior Member
Join Date: Feb 2007
Posts: 2

Anyone else a C++ example how to hook a winamp window that i can use to import in my C# project?
Biffke is offline   Reply With Quote
Old 21st February 2007, 06:17   #4
Major Dude
Join Date: Jan 2004
Location: Brisbane, Australia
Posts: 1,193
Rather than injecting into the thread, you can just create a plugin in the plugins directory and Winamp will load the .dll into the process anyway. You can then communicate with your plugin using COM, pipes, or whatever you like. ActiveWinamp is one such plugin which does something like that for general use through COM.
shaneh is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump