1
0

commandWinampAuth.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef NULLSOFT_AUTH_LOGINCOMMAND_WINAMPAUTH_HEADER
  2. #define NULLSOFT_AUTH_LOGINCOMMAND_WINAMPAUTH_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include "./loginCommand.h"
  7. // {36B883C8-5400-4d43-89EA-96B1CBEFC605}
  8. static const GUID LCUID_WINAMPAUTH =
  9. { 0x36b883c8, 0x5400, 0x4d43, { 0x89, 0xea, 0x96, 0xb1, 0xcb, 0xef, 0xc6, 0x5 } };
  10. class LoginCommandWinampAuth : public LoginCommand
  11. {
  12. protected:
  13. LoginCommandWinampAuth();
  14. ~LoginCommandWinampAuth();
  15. public:
  16. static HRESULT CreateInstance(LoginCommandWinampAuth **instance);
  17. public:
  18. ULONG AddRef();
  19. ULONG Release();
  20. HRESULT GetType(GUID *commandUid);
  21. HRESULT SetParameter(LPCWSTR pszKey, LPCWSTR pszValue);
  22. HRESULT IsValid();
  23. HRESULT IsIdentical(LoginCommand *test);
  24. HRESULT BeginLogin(LoginData *data, LoginResult::Callback callback, void *user, LoginResult **result);
  25. HRESULT EndLogin(LoginResult *result, INT *authCode, LoginCredentials **credentials);
  26. HRESULT RequestAbort(LoginResult *result, BOOL drop);
  27. protected:
  28. ULONG ref;
  29. };
  30. #endif //NULLSOFT_AUTH_LOGINCOMMAND_WINAMPAUTH_HEADER