JSAPI2_Creator.h 882 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include "../Winamp/JSAPI2_svc_apicreator.h"
  3. #include <api/service/waservicefactory.h>
  4. #include <api/service/services.h>
  5. class JSAPI2Factory : public waServiceFactory
  6. {
  7. public:
  8. FOURCC GetServiceType();
  9. const char *GetServiceName();
  10. GUID GetGUID();
  11. void *GetInterface( int global_lock );
  12. int SupportNonLockingInterface();
  13. int ReleaseInterface( void *ifc );
  14. const char *GetTestString();
  15. int ServiceNotify( int msg, int param1, int param2 );
  16. protected:
  17. RECVS_DISPATCH;
  18. };
  19. class JSAPI2_Creator : public JSAPI2::svc_apicreator
  20. {
  21. IDispatch *CreateAPI(const wchar_t *name, const wchar_t *key, JSAPI::ifc_info *info);
  22. int PromptForAuthorization(HWND parent, const wchar_t *group, const wchar_t *action, const wchar_t *authorization_key, JSAPI2::api_security::AuthorizationData *data);
  23. protected:
  24. RECVS_DISPATCH;
  25. };