Leaked source code of windows server 2003
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.

69 lines
1.7 KiB

  1. /*
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. setting.h
  5. Abstract:
  6. Definition of the CSetting class
  7. Revision History:
  8. created steveshi 08/23/00
  9. */
  10. #ifndef __SETTING_H_
  11. #define __SETTING_H_
  12. #include "resource.h" // main symbols
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CSetting
  15. class ATL_NO_VTABLE CSetting :
  16. public CComObjectRootEx<CComSingleThreadModel>,
  17. public CComCoClass<CSetting, &CLSID_Setting>,
  18. public IDispatchImpl<ISetting, &IID_ISetting, &LIBID_RCBDYCTLLib>
  19. {
  20. public:
  21. CSetting()
  22. {
  23. m_pIniFile = NULL;
  24. m_pProfileDir = NULL;
  25. }
  26. ~CSetting()
  27. {
  28. if (m_pIniFile) free(m_pIniFile);
  29. if (m_pProfileDir) free(m_pProfileDir);
  30. }
  31. DECLARE_REGISTRY_RESOURCEID(IDR_Setting)
  32. DECLARE_PROTECT_FINAL_CONSTRUCT()
  33. BEGIN_COM_MAP(CSetting)
  34. COM_INTERFACE_ENTRY(ISetting)
  35. COM_INTERFACE_ENTRY(IDispatch)
  36. END_COM_MAP()
  37. // Ismapi
  38. public:
  39. STDMETHOD(get_GetIPAddress)(/*[out, retval]*/ BSTR *pVal);
  40. // STDMETHOD(get_GetUserTempFileName)(/*[out, retval]*/ BSTR *pVal);
  41. // STDMETHOD(GetProfileString)(/*[in]*/ BSTR session, /*[out, retval]*/ BSTR *pVal);
  42. // STDMETHOD(SetProfileString)(/*[in]*/ BSTR session, /*[in]*/ BSTR newVal);
  43. STDMETHOD(get_CreatePassword)(/*[out, retval]*/ BSTR *pVal);
  44. STDMETHOD(get_GetPropertyInBlob)(/*[in]*/ BSTR bstrBlob, /*[in]*/ BSTR bstrName, /*[out, retval]*/ BSTR *pVal);
  45. STDMETHOD(SquishAddress)(/*[in]*/ BSTR IP, /*[out, retval]*/ BSTR *pVal);
  46. STDMETHOD(ExpandAddress)(/*[in]*/ BSTR IP, /*[out, retval]*/ BSTR *pVal);
  47. public:
  48. TCHAR* m_pIniFile;
  49. TCHAR* m_pProfileDir;
  50. /*
  51. protected:
  52. HRESULT InitProfile();*/
  53. };
  54. #endif //__SETTING_H_