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.

50 lines
1.7 KiB

  1. // RARegSetting.h : Declaration of the CRARegSetting
  2. #ifndef __RAREGSETTING_H_
  3. #define __RAREGSETTING_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CRARegSetting
  7. class ATL_NO_VTABLE CRARegSetting :
  8. public CComObjectRootEx<CComSingleThreadModel>,
  9. public CComCoClass<CRARegSetting, &CLSID_RARegSetting>,
  10. public IDispatchImpl<IRARegSetting, &IID_IRARegSetting, &LIBID_RASSISTANCELib>
  11. {
  12. public:
  13. CRARegSetting()
  14. {
  15. }
  16. DECLARE_REGISTRY_RESOURCEID(IDR_RAREGSETTING)
  17. DECLARE_PROTECT_FINAL_CONSTRUCT()
  18. BEGIN_COM_MAP(CRARegSetting)
  19. COM_INTERFACE_ENTRY(IRARegSetting)
  20. COM_INTERFACE_ENTRY(IDispatch)
  21. END_COM_MAP()
  22. // IRARegSetting
  23. public:
  24. STDMETHOD(get_MaxTicketExpiry)(/*[out, retval]*/ LONG *pVal);
  25. STDMETHOD(put_MaxTicketExpiry)(/*[in]*/ LONG newVal);
  26. STDMETHOD(get_AllowFullControl)(/*[out, retval]*/ BOOL *pVal);
  27. STDMETHOD(put_AllowFullControl)(/*[in]*/ BOOL newVal);
  28. STDMETHOD(get_AllowUnSolicited)(/*[out, retval]*/ BOOL *pVal);
  29. STDMETHOD(put_AllowUnSolicited)(/*[in]*/ BOOL newVal);
  30. STDMETHOD(get_AllowGetHelp)(/*[out, retval]*/ BOOL *pVal);
  31. STDMETHOD(put_AllowGetHelp)(/*[in]*/ BOOL newVal);
  32. STDMETHOD(get_AllowRemoteAssistance)(/*[out, retval]*/ BOOL *pVal);
  33. STDMETHOD(put_AllowRemoteAssistance)(/*[in]*/ BOOL newVal);
  34. STDMETHOD(get_AllowUnSolicitedFullControl)(/*[out, retval]*/ BOOL *pVal);
  35. STDMETHOD(get_AllowBuddyHelp)(/*[out, retval]*/ BOOL *pVal);
  36. STDMETHOD(get_AllowGetHelpCPL)(/*[out, retval]*/ BOOL *pVal);
  37. private:
  38. HRESULT RegSetDwValue(LPCTSTR valueName, DWORD dwValue);
  39. HRESULT RegGetDwValue(LPCTSTR valueName, DWORD* pdword);
  40. HRESULT RegGetDwValueCPL(LPCTSTR valueName, DWORD* pdword);
  41. };
  42. #endif //__RAREGSETTING_H_