1
0

handler.h 861 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include "../Agave/URIHandler/svc_urihandler.h"
  3. // {800A9A73-8891-4892-AEEB-FF970B16A39D}
  4. static const GUID winamp_uri_handler_guid =
  5. { 0x800a9a73, 0x8891, 0x4892, { 0xae, 0xeb, 0xff, 0x97, 0xb, 0x16, 0xa3, 0x9d } };
  6. class WinampURIHandler : public svc_urihandler
  7. {
  8. public:
  9. static const char *getServiceName() { return "Winamp URI Handler"; }
  10. static GUID getServiceGuid() { return winamp_uri_handler_guid; }
  11. int ProcessFilename(const wchar_t *filename);
  12. int IsMine(const wchar_t *filename); // just like ProcessFilename but don't actually process
  13. int EnumProtocols(size_t n, wchar_t *protocol, size_t protocolCch, wchar_t *description, size_t descriptionCch); // return 0 on success
  14. int RegisterProtocol(const wchar_t *protocol, const wchar_t *winampexe);
  15. int UnregisterProtocol(const wchar_t *protocol);
  16. protected:
  17. RECVS_DISPATCH;
  18. };