templateCredentials.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef NULLSOFT_AUTH_LOGIN_TEMPLATE_CREDENTIALS_HEADER
  2. #define NULLSOFT_AUTH_LOGIN_TEMPLATE_CREDENTIALS_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include "./loginTemplate.h"
  7. // {13B3CEEB-A751-4864-8C69-A8E0566B169C}
  8. static const GUID LTUID_CREDENTIALS =
  9. { 0x13b3ceeb, 0xa751, 0x4864, { 0x8c, 0x69, 0xa8, 0xe0, 0x56, 0x6b, 0x16, 0x9c } };
  10. class LoginTemplateCredentials : public LoginTemplate
  11. {
  12. protected:
  13. LoginTemplateCredentials();
  14. ~LoginTemplateCredentials();
  15. public:
  16. static HRESULT CreateInstance(LoginTemplateCredentials **instance);
  17. public:
  18. ULONG AddRef();
  19. ULONG Release();
  20. HRESULT GetType(GUID *templateUid);
  21. HRESULT SetParameter(LPCWSTR pszKey, LPCWSTR pszValue);
  22. HRESULT IsValid();
  23. HRESULT IsIdentical(LoginTemplate *test);
  24. HWND CreatePage(HWND hLoginbox, HWND hParent);
  25. protected:
  26. ULONG ref;
  27. LPWSTR title;
  28. LPWSTR accountRecoverUrl;
  29. LPWSTR accountCreateUrl;
  30. LPWSTR usernameLabel;
  31. LPWSTR passwordLabel;
  32. };
  33. #endif //NULLSOFT_AUTH_LOGIN_TEMPLATE_CREDENTIALS_HEADER