diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Winamp/handler.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Winamp/handler.h')
-rw-r--r-- | Src/Winamp/handler.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Src/Winamp/handler.h b/Src/Winamp/handler.h new file mode 100644 index 00000000..475bc29e --- /dev/null +++ b/Src/Winamp/handler.h @@ -0,0 +1,22 @@ +#pragma once +#include "../Agave/URIHandler/svc_urihandler.h" + +// {800A9A73-8891-4892-AEEB-FF970B16A39D} +static const GUID winamp_uri_handler_guid = +{ 0x800a9a73, 0x8891, 0x4892, { 0xae, 0xeb, 0xff, 0x97, 0xb, 0x16, 0xa3, 0x9d } }; + + +class WinampURIHandler : public svc_urihandler +{ +public: + static const char *getServiceName() { return "Winamp URI Handler"; } + static GUID getServiceGuid() { return winamp_uri_handler_guid; } + int ProcessFilename(const wchar_t *filename); + int IsMine(const wchar_t *filename); // just like ProcessFilename but don't actually process + int EnumProtocols(size_t n, wchar_t *protocol, size_t protocolCch, wchar_t *description, size_t descriptionCch); // return 0 on success + int RegisterProtocol(const wchar_t *protocol, const wchar_t *winampexe); + int UnregisterProtocol(const wchar_t *protocol); + +protected: + RECVS_DISPATCH; +};
\ No newline at end of file |