Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Winamp Development (http://forums.winamp.com/forumdisplay.php?f=14)
-   -   API + External App - is this possibe? (http://forums.winamp.com/showthread.php?t=202760)

eleet-2k2 22nd December 2004 13:19

API + External App - is this possibe?
 
Hello :). I've been working on using the Winamp API to control Winamp, however I've got a few questions and I'd like to know if they are possible to be done from an external program (read: not a winamp plugin). Thanks for any and all help, and Happy Holiday!

1) Retrieve the song's artist and title of the currently playing song.
-or-
Retrieving the text in Winamp's scrollbar.

2) Deleting a single item from Winamp's playlist.

3) Playing a file (given the file's path and filename), not enqueueing the file.

I think that's it for now. :) Thanks again.

guav 22nd December 2004 22:03

Quote:

from an external program (read: not a winamp plugin).
All the messages that should work in a plugin only uses pointers. The problem is that a pointer in one process's virtual address space isn't the same pointer in other's.

There's a few techinuqes of "dll injection", using which you can load your dll into another process's virtual address space.

Anyway, why force your code into winamp process using hack methods if you can write a plugin which will be loaded into Winamp by ordinary way ? you can write a plugin and an external app and organize the data exchange between those by WM_COPYDATA.

DrO 22nd December 2004 22:07

or you just use the readprocessmemory examples as lay around here and there :)

helping eleet where possible on irc

-daz

Joel 23rd December 2004 03:21

I said: put bells on the door when people enters the channel <_<

rlevis 2nd January 2005 08:05

1 Attachment(s)
Yes, external communication is possible using Windows messages. I downloaded the API some time ago which separated the messages supported by external programs and internal plugins. I've attached the API.

I came here to see if there was an updated API for external apps, but I can't find anything like what I have attached.

Regards,
Ross.
http://www.station*************

DrO 2nd January 2005 11:29

rlevis: that's the contents of the old page that used to be on nsdn. current stuff is in wa_ipc.h in the sdk

-daz

CaboWaboAddict 3rd January 2005 18:38

Quote:

Originally posted by DrO
or you just use the readprocessmemory examples as lay around here and there
Ok, I used the search button to find readprocessmemory and it came back with no matches. What gives?

jyeee 10th January 2005 04:26

Torsius' help for non-plugin API:
http://forums.winamp.com/showthread....hlight=torsius

shaneh 10th January 2005 07:04

I think winamp search doesnt search for such long strings. I have posted a readprocessmemory example heeya:

http://forums.winamp.com/showthread....hreadid=171990

Otherwise, you can use my plugin ActiveWinamp for some tricky external programming.

CaboWaboAddict 10th January 2005 14:37

Thanks!:)

saivert 11th January 2005 12:25

Using the ActiveWinamp plugin in an external application requires COM and ActiveX programming skills. If you only know how to write straight code lines with simple function calls (a.k.a C style) stick with the ReadProcessMemory Win32 API function. You can also create a thread inside Winamp's process space in order to do the more tricky stuff. You can allocate memory in Winamp's process space using VirtualAllocEx and then writing to it using WriteProcessMemory to pass strings to Winamp.


All times are GMT. The time now is 20:58.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.