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.

58 lines
1.6 KiB

  1. //*********************************************************************
  2. //* Microsoft Windows **
  3. //* Copyright(c) Microsoft Corp., 1999 **
  4. //*********************************************************************
  5. //
  6. // EULA.H - Header for the implementation of CEula
  7. //
  8. // HISTORY:
  9. //
  10. // 1/27/99 a-jaswed Created.
  11. //
  12. #ifndef _EULA_H_
  13. #define _EULA_H_
  14. #include <windows.h>
  15. #include <assert.h>
  16. #include <oleauto.h>
  17. class CEula : public IDispatch
  18. {
  19. private:
  20. ULONG m_cRef;
  21. BOOL m_bAccepted;
  22. HINSTANCE m_hInstance;
  23. //SET functions
  24. HRESULT set_EULAAcceptance (BOOL bVal);
  25. //Methods
  26. HRESULT GetValidEulaFilename(BSTR* bstrEULAFile);
  27. public:
  28. CEula (HINSTANCE hInstance);
  29. ~CEula ();
  30. //GET functions
  31. HRESULT get_EULAAcceptance (BOOL* pbVal);
  32. HRESULT createLicenseHtm ();
  33. // IUnknown Interfaces
  34. STDMETHODIMP QueryInterface (REFIID riid, LPVOID* ppvObj);
  35. STDMETHODIMP_(ULONG) AddRef ();
  36. STDMETHODIMP_(ULONG) Release ();
  37. //IDispatch Interfaces
  38. STDMETHOD (GetTypeInfoCount) (UINT* pcInfo);
  39. STDMETHOD (GetTypeInfo) (UINT, LCID, ITypeInfo** );
  40. STDMETHOD (GetIDsOfNames) (REFIID, OLECHAR**, UINT, LCID, DISPID* );
  41. STDMETHOD (Invoke) (DISPID dispidMember, REFIID riid, LCID lcid,
  42. WORD wFlags, DISPPARAMS* pdispparams,
  43. VARIANT* pvarResult, EXCEPINFO* pexcepinfo,
  44. UINT* puArgErr);
  45. };
  46. #endif