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.

83 lines
2.6 KiB

  1. // wiatest.h : main header file for the WIATEST application
  2. //
  3. #if !defined(AFX_WIATEST_H__EAC38623_6251_45A9_9A2B_C1CF0A92673E__INCLUDED_)
  4. #define AFX_WIATEST_H__EAC38623_6251_45A9_9A2B_C1CF0A92673E__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. #ifdef UNICODE
  13. #define TSTRSTR wcsstr
  14. #define TSSCANF swscanf
  15. #define TSPRINTF swprintf
  16. #else
  17. #define TSTRSTR strstr
  18. #define TSSCANF sscanf
  19. #define TSPRINTF sprintf
  20. #endif
  21. #define WM_DEVICE_DISCONNECTED WM_USER + 900
  22. #define WM_DEVICE_CONNECTED WM_USER + 901
  23. #define WM_ITEM_DELETED WM_USER + 902
  24. #define WM_ITEM_CREATED WM_USER + 903
  25. #define WM_TREE_UPDATED WM_USER + 904
  26. #define WM_STORAGE_CREATED WM_USER + 905
  27. #define WM_STORAGE_DELETED WM_USER + 906
  28. void Trace(LPCTSTR format,...);
  29. LONG WIACONSTANT_VALUE_FROMINDEX(int index);
  30. TCHAR *WIACONSTANT_TSTR_FROMINDEX(int index);
  31. INT FindEndIndexInTable(TCHAR *pszPropertyName);
  32. INT FindStartIndexInTable(TCHAR *pszPropertyName);
  33. BOOL WIACONSTANT2TSTR(TCHAR *pszPropertyName, LONG lValue, TCHAR *pszValName);
  34. BOOL TSTR2WIACONSTANT(TCHAR *pszPropertyName, TCHAR *pszValName, LONG *plVal);
  35. void RC2TSTR(UINT uResourceID, TCHAR *szString, LONG size);
  36. void StatusMessageBox(HWND hWnd, UINT uResourceID);
  37. void StatusMessageBox(HWND hWnd, LPTSTR szStatusText);
  38. void StatusMessageBox(UINT uResourceID);
  39. void StatusMessageBox(LPTSTR szStatusText);
  40. void ErrorMessageBox(UINT uResourceID, HRESULT hrError = S_OK);
  41. void ErrorMessageBox(LPTSTR szErrorText, HRESULT hrError = S_OK);
  42. /////////////////////////////////////////////////////////////////////////////
  43. // CWiatestApp:
  44. // See wiatest.cpp for the implementation of this class
  45. //
  46. class CWiatestApp : public CWinApp
  47. {
  48. public:
  49. CWiatestApp();
  50. // Overrides
  51. // ClassWizard generated virtual function overrides
  52. //{{AFX_VIRTUAL(CWiatestApp)
  53. public:
  54. virtual BOOL InitInstance();
  55. virtual int ExitInstance();
  56. //}}AFX_VIRTUAL
  57. // Implementation
  58. //{{AFX_MSG(CWiatestApp)
  59. afx_msg void OnAppAbout();
  60. // NOTE - the ClassWizard will add and remove member functions here.
  61. // DO NOT EDIT what you see in these blocks of generated code !
  62. //}}AFX_MSG
  63. DECLARE_MESSAGE_MAP()
  64. };
  65. /////////////////////////////////////////////////////////////////////////////
  66. //{{AFX_INSERT_LOCATION}}
  67. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  68. #endif // !defined(AFX_WIATEST_H__EAC38623_6251_45A9_9A2B_C1CF0A92673E__INCLUDED_)