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.

43 lines
1.6 KiB

  1. // CWiahelper.h: interface for the cwiahelper class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_CWIAHELPER_H__840CF989_FE02_4C81_B38F_361914E1CBC7__INCLUDED_)
  5. #define AFX_CWIAHELPER_H__840CF989_FE02_4C81_B38F_361914E1CBC7__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #define MIN_PROPID 2
  10. class CWiahelper
  11. {
  12. public:
  13. CWiahelper();
  14. virtual ~CWiahelper();
  15. HRESULT SetIWiaItem(IWiaItem *pIWiaItem);
  16. HRESULT ReadPropertyString(PROPID PropertyID, LPTSTR szPropertyValue);
  17. HRESULT ReadPropertyLong(PROPID PropertyID, LONG *plPropertyValue);
  18. HRESULT ReadPropertyFloat(PROPID PropertyID, FLOAT *pfPropertyValue);
  19. HRESULT ReadPropertyGUID(PROPID PropertyID, GUID *pguidPropertyValue);
  20. HRESULT ReadPropertyData(PROPID PropertyID, BYTE **ppData, LONG *pDataSize);
  21. HRESULT ReadPropertyBSTR(PROPID PropertyID, BSTR *pbstrPropertyValue);
  22. HRESULT ReadPropertyStreamFile(TCHAR *szPropertyStreamFile);
  23. HRESULT WritePropertyString(PROPID PropertyID, LPTSTR szPropertyValue);
  24. HRESULT WritePropertyLong(PROPID PropertyID, LONG lPropertyValue);
  25. HRESULT WritePropertyFloat(PROPID PropertyID, FLOAT fPropertyValue);
  26. HRESULT WritePropertyGUID(PROPID PropertyID, GUID guidPropertyValue);
  27. HRESULT WritePropertyBSTR(PROPID PropertyID, BSTR bstrPropertyValue);
  28. HRESULT WritePropertyStreamFile(TCHAR *szPropertyStreamFile);
  29. private:
  30. IWiaItem *m_pIWiaItem;
  31. IWiaPropertyStorage *m_pIWiaPropStg;
  32. };
  33. #endif // !defined(AFX_CWIAHELPER_H__840CF989_FE02_4C81_B38F_361914E1CBC7__INCLUDED_)