aboutsummaryrefslogtreecommitdiff
path: root/Src/auth/Loginbox/commandWinampAuth.h
diff options
context:
space:
mode:
authorJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
committerJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
commit20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/auth/Loginbox/commandWinampAuth.h
parent537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff)
downloadwinamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz
Initial community commit
Diffstat (limited to 'Src/auth/Loginbox/commandWinampAuth.h')
-rw-r--r--Src/auth/Loginbox/commandWinampAuth.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/Src/auth/Loginbox/commandWinampAuth.h b/Src/auth/Loginbox/commandWinampAuth.h
new file mode 100644
index 00000000..0d06d049
--- /dev/null
+++ b/Src/auth/Loginbox/commandWinampAuth.h
@@ -0,0 +1,44 @@
+#ifndef NULLSOFT_AUTH_LOGINCOMMAND_WINAMPAUTH_HEADER
+#define NULLSOFT_AUTH_LOGINCOMMAND_WINAMPAUTH_HEADER
+
+#if defined(_MSC_VER) && (_MSC_VER >= 1020)
+#pragma once
+#endif
+
+#include "./loginCommand.h"
+
+// {36B883C8-5400-4d43-89EA-96B1CBEFC605}
+static const GUID LCUID_WINAMPAUTH =
+{ 0x36b883c8, 0x5400, 0x4d43, { 0x89, 0xea, 0x96, 0xb1, 0xcb, 0xef, 0xc6, 0x5 } };
+
+
+class LoginCommandWinampAuth : public LoginCommand
+{
+protected:
+ LoginCommandWinampAuth();
+ ~LoginCommandWinampAuth();
+
+public:
+ static HRESULT CreateInstance(LoginCommandWinampAuth **instance);
+
+public:
+ ULONG AddRef();
+ ULONG Release();
+
+ HRESULT GetType(GUID *commandUid);
+
+ HRESULT SetParameter(LPCWSTR pszKey, LPCWSTR pszValue);
+ HRESULT IsValid();
+ HRESULT IsIdentical(LoginCommand *test);
+
+
+ HRESULT BeginLogin(LoginData *data, LoginResult::Callback callback, void *user, LoginResult **result);
+ HRESULT EndLogin(LoginResult *result, INT *authCode, LoginCredentials **credentials);
+ HRESULT RequestAbort(LoginResult *result, BOOL drop);
+
+protected:
+ ULONG ref;
+
+};
+
+#endif //NULLSOFT_AUTH_LOGINCOMMAND_WINAMPAUTH_HEADER \ No newline at end of file