Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.4 KiB

  1. // LogonPage.h : Declaration of the CLogonPage
  2. #ifndef __LOGONPAGE_H_
  3. #define __LOGONPAGE_H_
  4. #include "Nusrmgr.h"
  5. #include "HTMLImpl.h"
  6. #include "resource.h" // main symbols
  7. /////////////////////////////////////////////////////////////////////////////
  8. // CLogonPage
  9. class ATL_NO_VTABLE DECLSPEC_UUID("C282FA70-BE5B-4D20-A819-14424E4A3950") CLogonPage :
  10. public CComObjectRoot,
  11. public CHTMLPageImpl<CLogonPage,ILogonPageUI>
  12. {
  13. public:
  14. CLogonPage() : _pLogonTypeCheckbox(NULL), _pTSModeCheckbox(NULL),
  15. _bFriendlyUIEnabled(VARIANT_FALSE), _bMultipleUsersEnabled(VARIANT_FALSE) {}
  16. ~CLogonPage() { ATOMICRELEASE(_pLogonTypeCheckbox); ATOMICRELEASE(_pTSModeCheckbox); }
  17. DECLARE_NOT_AGGREGATABLE(CLogonPage)
  18. //DECLARE_PROTECT_FINAL_CONSTRUCT()
  19. BEGIN_COM_MAP(CLogonPage)
  20. COM_INTERFACE_ENTRY(ITaskPage)
  21. COM_INTERFACE_ENTRY(ILogonPageUI)
  22. COM_INTERFACE_ENTRY2(IDispatch, ILogonPageUI)
  23. END_COM_MAP()
  24. // ITaskPage overrides
  25. public:
  26. STDMETHOD(Reinitialize)(/*[in]*/ ULONG reserved);
  27. // ILogonPageUI
  28. public:
  29. STDMETHOD(initPage)(/*[in]*/ IDispatch* pdispLogonTypeCheckbox, /*[in]*/ IDispatch* pdispTSModeCheckbox);
  30. STDMETHOD(onOK)();
  31. private:
  32. IHTMLInputElement* _pLogonTypeCheckbox;
  33. IHTMLInputElement* _pTSModeCheckbox;
  34. VARIANT_BOOL _bFriendlyUIEnabled;
  35. VARIANT_BOOL _bMultipleUsersEnabled;
  36. public:
  37. static LPWSTR c_aHTML[2];
  38. };
  39. EXTERN_C const CLSID CLSID_LogonPage;
  40. #endif //__LOGONPAGE_H_