Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminate Discord RPC connection when Winamp closing #17

Open
derekgates opened this issue Mar 3, 2020 · 0 comments
Open

Terminate Discord RPC connection when Winamp closing #17

derekgates opened this issue Mar 3, 2020 · 0 comments

Comments

@derekgates
Copy link
Contributor

Need to double check that the Discord connection/RPC is being closed when Winamp is shutting down.

I noticed I closed Winamp today and the status in Discord stuck around.

wa_ipc.h:

#define IPC_ISFULLSTOP 400
/* (requires winamp 2.7+ I think)
** int ret=SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_ISFULLSTOP);
** This is useful for when you're an output plugin and you want to see if the stop/close
** happening is a full stop or if you are just between tracks. This returns non zero if
** it is a full stop or zero if it is just a new track.
** benski> i think it's actually the other way around - 
**         !0 for EOF and 0 for user pressing stop
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant