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.

87 lines
2.7 KiB

  1. // WIATest.h : main header file for the WIATEST application
  2. //
  3. #if !defined(AFX_WIATEST_H__48214BA6_E863_11D2_ABDA_009027226441__INCLUDED_)
  4. #define AFX_WIATEST_H__48214BA6_E863_11D2_ABDA_009027226441__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. #ifndef __AFXWIN_H__
  9. #error include 'stdafx.h' before including this file for PCH
  10. #endif
  11. #include "resource.h" // main symbols
  12. #include "cwia.h" // wia obj
  13. #include "WaitDlg.h" // WAIT... dialog for in process status
  14. #define _SMARTUI // enables SMARTUI features, Toolbars hiding themselves, and auto adjusting
  15. // bigggg nasty sti.lib link here
  16. #pragma comment(lib, "..\\..\\..\\..\\..\\public\\sdk\\lib\\i386\\sti.lib")
  17. // guid lib link here
  18. #pragma comment(lib, "..\\..\\lib\\winnt\\i386\\wiaguid.lib")
  19. #pragma comment(lib,"winmm.lib")
  20. #define TRANSFER_TO_MEMORY 0
  21. #define TRANSFER_TO_FILE 1
  22. #define EDIT_LIST 0
  23. #define EDIT_RANGE 1
  24. #define EDIT_FLAGS 2
  25. #define EDIT_NONE 3
  26. #define PAINT_TOFIT 0
  27. #define PAINT_ACTUAL 1
  28. // these need to be moved into another place
  29. // temp utils..
  30. HRESULT ReadPropStr(PROPID propid,IWiaPropertyStorage *pIPropStg, BSTR *pbstr);
  31. HRESULT ReadPropLong(PROPID propid, IWiaPropertyStorage *pIPropStg, LONG *plval);
  32. HRESULT WritePropLong(PROPID propid, IWiaPropertyStorage *pIPropStg, LONG lVal);
  33. HRESULT WritePropStr(PROPID propid, IWiaPropertyStorage *pIPropStg, BSTR bstr);
  34. HRESULT WritePropGUID(PROPID propid, IWiaPropertyStorage *pIWiaPropStg, GUID guidVal);
  35. HRESULT WriteProp(unsigned int VarType,PROPID propid, IWiaPropertyStorage *pIWiaPropStg, LPCTSTR pVal);
  36. // logging utils
  37. void StressStatus(CString status, HRESULT hResult);
  38. void StressStatus(CString status);
  39. /////////////////////////////////////////////////////////////////////////////
  40. // CWIATestApp:
  41. // See WIATest.cpp for the implementation of this class
  42. //
  43. class CWIATestApp : public CWinApp
  44. {
  45. public:
  46. CString GetDeviceIDCommandLine();
  47. CString m_CmdLine;
  48. CWIATestApp();
  49. // Overrides
  50. // ClassWizard generated virtual function overrides
  51. //{{AFX_VIRTUAL(CWIATestApp)
  52. public:
  53. virtual BOOL InitInstance();
  54. virtual int ExitInstance();
  55. //}}AFX_VIRTUAL
  56. // Implementation
  57. //{{AFX_MSG(CWIATestApp)
  58. afx_msg void OnAppAbout();
  59. // NOTE - the ClassWizard will add and remove member functions here.
  60. // DO NOT EDIT what you see in these blocks of generated code !
  61. //}}AFX_MSG
  62. DECLARE_MESSAGE_MAP()
  63. };
  64. /////////////////////////////////////////////////////////////////////////////
  65. //{{AFX_INSERT_LOCATION}}
  66. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  67. #endif // !defined(AFX_WIATEST_H__48214BA6_E863_11D2_ABDA_009027226441__INCLUDED_)