1
0

templateInfo.h 890 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef NULLSOFT_AUTH_LOGIN_TEMPLATE_INFO_HEADER
  2. #define NULLSOFT_AUTH_LOGIN_TEMPLATE_INFO_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include "./loginTemplate.h"
  7. // {AF0F69A5-61B5-4e22-BC20-C075AEAB6C0A}
  8. static const GUID LTUID_INFO =
  9. { 0xaf0f69a5, 0x61b5, 0x4e22, { 0xbc, 0x20, 0xc0, 0x75, 0xae, 0xab, 0x6c, 0xa } };
  10. class LoginTemplateInfo : public LoginTemplate
  11. {
  12. protected:
  13. LoginTemplateInfo();
  14. ~LoginTemplateInfo();
  15. public:
  16. static HRESULT CreateInstance(LoginTemplateInfo **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 message;
  29. };
  30. #endif //NULLSOFT_AUTH_LOGIN_TEMPLATE_INFO_HEADER