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.

70 lines
2.8 KiB

  1. #pragma once
  2. /*
  3. * h o t w i z o m . h
  4. *
  5. * Purpose:
  6. * HotMail Wizard Object Model
  7. *
  8. * History
  9. *
  10. * Copyright (C) Microsoft Corp. 1995, 1996.
  11. */
  12. interface IOEHotWizardOM;
  13. interface IHashTable;
  14. class COEHotWizOm :
  15. public IOEHotWizardOM,
  16. public IElementBehavior
  17. {
  18. public:
  19. // ---------------------------------------------------------------------------
  20. // IUnknown members
  21. // ---------------------------------------------------------------------------
  22. virtual STDMETHODIMP QueryInterface(REFIID riid, LPVOID * ppvObj);
  23. virtual STDMETHODIMP_(ULONG) AddRef();
  24. virtual STDMETHODIMP_(ULONG) Release();
  25. // ---------------------------------------------------------------------------
  26. // IDispatch members
  27. // ---------------------------------------------------------------------------
  28. virtual HRESULT STDMETHODCALLTYPE GetTypeInfoCount(UINT *pctinfo);
  29. virtual HRESULT STDMETHODCALLTYPE GetTypeInfo(UINT itinfo, LCID lcid, ITypeInfo **pptinfo);
  30. virtual HRESULT STDMETHODCALLTYPE GetIDsOfNames(REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgdispid);
  31. virtual HRESULT STDMETHODCALLTYPE Invoke(DISPID dispidMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pdispparams, VARIANT *pvarResult, EXCEPINFO *pexcepinfo, UINT *puArgErr);
  32. // ---------------------------------------------------------------------------
  33. // IOEAcctWizardOM members
  34. // ---------------------------------------------------------------------------
  35. virtual HRESULT STDMETHODCALLTYPE setPropSz(BSTR bstrProp, BSTR bstrVal);
  36. virtual HRESULT STDMETHODCALLTYPE getPropSz(BSTR bstrProp, BSTR *pbstrVal);
  37. virtual HRESULT STDMETHODCALLTYPE clearProps();
  38. virtual HRESULT STDMETHODCALLTYPE createAccount(BSTR bstrINS);
  39. virtual HRESULT STDMETHODCALLTYPE close(VARIANT_BOOL fPrompt);
  40. virtual HRESULT STDMETHODCALLTYPE get_width(LONG *pl);
  41. virtual HRESULT STDMETHODCALLTYPE put_width(LONG l);
  42. virtual HRESULT STDMETHODCALLTYPE get_height(LONG *pl);
  43. virtual HRESULT STDMETHODCALLTYPE put_height(LONG l);
  44. // ---------------------------------------------------------------------------
  45. // IElementBehavior members
  46. // ---------------------------------------------------------------------------
  47. virtual HRESULT STDMETHODCALLTYPE Init(IElementBehaviorSite *pBehaviorSite);
  48. virtual HRESULT STDMETHODCALLTYPE Notify(LONG lEvent, VARIANT *pVar);
  49. virtual HRESULT STDMETHODCALLTYPE Detach();
  50. COEHotWizOm();
  51. virtual ~COEHotWizOm();
  52. HRESULT Init(HWND hwndDlg, IHotWizardHost *pWizHost);
  53. private:
  54. ULONG m_cRef;
  55. LPTYPEINFO m_pTypeInfo;
  56. HWND m_hwndDlg;
  57. IHashTable *m_pHash;
  58. IHotWizardHost *m_pWizHost;
  59. };