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.

105 lines
4.6 KiB

  1. #ifndef _INC_WEBVIEW_H
  2. #define _INC_WEBVIEW_H
  3. #include <exdisp.h>
  4. #include "icwhelp.h"
  5. #include "appdefs.h"
  6. interface IICWWebView : public IUnknown
  7. {
  8. public:
  9. virtual HRESULT STDMETHODCALLTYPE HandleKey (LPMSG lpMsg) = 0;
  10. virtual HRESULT STDMETHODCALLTYPE ConnectToWindow (HWND hWnd, DWORD dwHtmPageType) = 0;
  11. virtual HRESULT STDMETHODCALLTYPE SetFocus () = 0;
  12. #ifndef UNICODE
  13. virtual HRESULT STDMETHODCALLTYPE DisplayHTML (TCHAR* lpszURL) = 0;
  14. #endif
  15. virtual HRESULT STDMETHODCALLTYPE DisplayHTML (BSTR bstrURL) = 0;
  16. virtual HRESULT STDMETHODCALLTYPE SetHTMLColors (LPTSTR lpszForeGrndColor, LPTSTR lpszBkGrndColor) = 0;
  17. virtual HRESULT STDMETHODCALLTYPE SetHTMLBackgroundBitmap (HBITMAP hbm, LPRECT lpRC) = 0;
  18. virtual HRESULT STDMETHODCALLTYPE get_BrowserObject (IWebBrowser2** lpWebBrowser) = 0;
  19. };
  20. interface IICWWalker : public IUnknown
  21. {
  22. public:
  23. virtual HRESULT STDMETHODCALLTYPE Walk () = 0;
  24. virtual HRESULT STDMETHODCALLTYPE AttachToDocument (IWebBrowser2* lpWebBrowser) = 0;
  25. virtual HRESULT STDMETHODCALLTYPE AttachToMSHTML (BSTR bstrURL) = 0;
  26. virtual HRESULT STDMETHODCALLTYPE Detach () = 0;
  27. virtual HRESULT STDMETHODCALLTYPE InitForMSHTML () = 0;
  28. virtual HRESULT STDMETHODCALLTYPE TermForMSHTML () = 0;
  29. virtual HRESULT STDMETHODCALLTYPE LoadURLFromFile (BSTR bstrURL) = 0;
  30. virtual HRESULT STDMETHODCALLTYPE ExtractUnHiddenText (BSTR* pbstrText) = 0;
  31. virtual HRESULT STDMETHODCALLTYPE ProcessOLSFile (IWebBrowser2* lpWebBrowser) = 0;
  32. virtual HRESULT STDMETHODCALLTYPE get_PageType (LPDWORD pdwPageType) = 0;
  33. virtual HRESULT STDMETHODCALLTYPE get_IsQuickFinish (BOOL* pbIsQuickFinish) = 0;
  34. virtual HRESULT STDMETHODCALLTYPE get_PageFlag (LPDWORD pdwPageFlag) = 0;
  35. virtual HRESULT STDMETHODCALLTYPE get_PageID (BSTR* pbstrPageID) = 0;
  36. virtual HRESULT STDMETHODCALLTYPE get_URL (LPTSTR lpszURL, BOOL bForward) = 0;
  37. virtual HRESULT STDMETHODCALLTYPE get_FirstFormQueryString (LPTSTR lpszQuery) = 0;
  38. virtual HRESULT STDMETHODCALLTYPE get_IeakIspFile (LPTSTR lpszIspFile) = 0;
  39. };
  40. interface IICWGifConvert : public IUnknown
  41. {
  42. public:
  43. virtual HRESULT STDMETHODCALLTYPE GifToIcon(TCHAR * pszFile, UINT nIconSize, HICON* phIcon) = 0;
  44. virtual HRESULT STDMETHODCALLTYPE GifToBitmap(TCHAR * pszFile, HBITMAP* phBitmap) = 0;
  45. };
  46. enum IPSDataElements
  47. {
  48. ISPDATA_USER_FIRSTNAME = 0,
  49. ISPDATA_USER_LASTNAME,
  50. ISPDATA_USER_ADDRESS,
  51. ISPDATA_USER_MOREADDRESS,
  52. ISPDATA_USER_CITY,
  53. ISPDATA_USER_STATE,
  54. ISPDATA_USER_ZIP,
  55. ISPDATA_USER_PHONE,
  56. ISPDATA_AREACODE,
  57. ISPDATA_COUNTRYCODE,
  58. ISPDATA_USER_FE_NAME,
  59. ISPDATA_PAYMENT_TYPE,
  60. ISPDATA_PAYMENT_BILLNAME,
  61. ISPDATA_PAYMENT_BILLADDRESS,
  62. ISPDATA_PAYMENT_BILLEXADDRESS,
  63. ISPDATA_PAYMENT_BILLCITY,
  64. ISPDATA_PAYMENT_BILLSTATE,
  65. ISPDATA_PAYMENT_BILLZIP,
  66. ISPDATA_PAYMENT_BILLPHONE,
  67. ISPDATA_PAYMENT_DISPLAYNAME,
  68. ISPDATA_PAYMENT_CARDNUMBER,
  69. ISPDATA_PAYMENT_EXMONTH,
  70. ISPDATA_PAYMENT_EXYEAR,
  71. ISPDATA_PAYMENT_CARDHOLDER,
  72. ISPDATA_SIGNED_PID,
  73. ISPDATA_GUID,
  74. ISPDATA_OFFERID,
  75. ISPDATA_BILLING_OPTION,
  76. ISPDATA_PAYMENT_CUSTOMDATA,
  77. ISPDATA_USER_COMPANYNAME,
  78. ISPDATA_ICW_VERSION
  79. };
  80. enum ISPDATAValidateLevels
  81. {
  82. ISPDATA_Validate_None = 0,
  83. ISPDATA_Validate_DataPresent,
  84. ISPDATA_Validate_Content
  85. };
  86. interface IICWISPData : public IUnknown
  87. {
  88. public:
  89. // IICWISPData
  90. virtual BOOL STDMETHODCALLTYPE PutDataElement(WORD wElement, LPCTSTR lpValue, WORD wValidateLevel) = 0;
  91. virtual LPCTSTR STDMETHODCALLTYPE GetDataElement(WORD wElement) = 0;
  92. virtual void STDMETHODCALLTYPE PutValidationFlags(DWORD dwFlags) = 0;
  93. virtual void STDMETHODCALLTYPE Init(HWND hWndParent) = 0;
  94. virtual HRESULT STDMETHODCALLTYPE GetQueryString(BSTR bstrBaseURL, BSTR *lpReturnURL) = 0;
  95. };
  96. #endif // _INC_WEBVIEW_H