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.

50 lines
1.5 KiB

  1. #ifndef _ISPDATA_H
  2. #define _ISPDATA_H
  3. #include "obcomglb.h"
  4. #include "appdefs.h"
  5. class CICWISPData
  6. {
  7. public:
  8. // IICWISPData
  9. virtual BOOL STDMETHODCALLTYPE PutDataElement(WORD wElement, LPCWSTR lpValue, WORD wValidateLevel);
  10. virtual HRESULT STDMETHODCALLTYPE GetQueryString(BSTR bstrBaseURL, BSTR *lpReturnURL);
  11. virtual LPCWSTR STDMETHODCALLTYPE GetDataElement(WORD wElement)
  12. {
  13. //ASSERT(wElement < ISPDATAELEMENTS_LEN);
  14. return (m_ISPDataElements[wElement].lpQueryElementValue);
  15. };
  16. virtual void STDMETHODCALLTYPE PutValidationFlags(DWORD dwFlags)
  17. {
  18. m_dwValidationFlags = dwFlags;
  19. };
  20. virtual void STDMETHODCALLTYPE Init(HWND hWndParent)
  21. {
  22. m_hWndParent = hWndParent;
  23. };
  24. // IUNKNOWN
  25. virtual HRESULT STDMETHODCALLTYPE QueryInterface( REFIID theGUID, void** retPtr );
  26. virtual ULONG STDMETHODCALLTYPE AddRef( void );
  27. virtual ULONG STDMETHODCALLTYPE Release( void );
  28. CICWISPData();
  29. ~CICWISPData();
  30. private:
  31. BOOL bValidateContent(WORD wFunctionID, LPCWSTR lpData);
  32. LPISPDATAELEMENT m_ISPDataElements;
  33. HWND m_hWndParent; // parent for messages
  34. DWORD m_dwValidationFlags;
  35. // For class object management
  36. LONG m_lRefCount;
  37. };
  38. #endif //_ISPDATA_H