How can I make the button on my headphones control something other than the stock music player?
To get the headset to control only one application:

The application has to support receiving headset control events.

In the case of Winamp, press menu --> Settings --> Enable "Control headset"

If there are multiple apps that accept headset controls, you may have to disable the feature on the other apps (I'm not certain which app gets priority over another).