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.

81 lines
1.9 KiB

  1. #if !defined(AFX_VCHK_H__759990C4_C5B1_44C5_8CAE_C55BAE0E2D81__INCLUDED_)
  2. #define AFX_VCHK_H__759990C4_C5B1_44C5_8CAE_C55BAE0E2D81__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // #include "driverlist.h"
  7. class CommandLine : public CCommandLineInfo {
  8. public:
  9. CommandLine() :
  10. m_last_flag (""),
  11. m_log_fname (""),
  12. m_drv_fname (""),
  13. m_parse_error (FALSE),
  14. m_error_msg (""),
  15. m_allowed(m_allowed_buf),
  16. m_append (TRUE),
  17. m_first_param(FALSE),
  18. CCommandLineInfo(),
  19. m_monitor(0)
  20. {
  21. m_allowed[0] = 0;
  22. m_allowed[1] = 0;
  23. }
  24. virtual void ParseParam( LPCTSTR lpszParam, BOOL bFlag, BOOL bLast );
  25. BOOL m_append;
  26. char m_allowed_buf[2048];
  27. BOOL m_parse_error;
  28. CString m_error_msg;
  29. CString m_log_fname;
  30. CString m_drv_fname;
  31. int m_monitor;
  32. private:
  33. char* m_allowed;
  34. CString m_last_flag;
  35. BOOL m_first_param;
  36. };
  37. /////////////////////////////////////////////////////////////////////////////
  38. // CDrvchkApp:
  39. // See drvchk.cpp for the implementation of this class
  40. //
  41. class CDrvchkApp : public CWinApp
  42. {
  43. public:
  44. CDrvchkApp();
  45. // Overrides
  46. // ClassWizard generated virtual function overrides
  47. //{{AFX_VIRTUAL(CDrvchkApp)
  48. public:
  49. virtual BOOL InitInstance();
  50. //}}AFX_VIRTUAL
  51. protected:
  52. void ChkDriver (CString drv_name);
  53. BOOL CheckDriverAndPrintResults (void);
  54. void PrintOut (LPCSTR str);
  55. void PrintOut (unsigned num);
  56. CString GetServiceRegistryPath (DISPLAY_DEVICE& DisplayDevice);
  57. private:
  58. FILE* m_logf;
  59. CommandLine m_cmd_line;
  60. OSVERSIONINFO m_os_ver_info;
  61. CString m_drv_name;
  62. // CDriverList m_drv_list;
  63. };
  64. /////////////////////////////////////////////////////////////////////////////
  65. #endif // !defined(AFX_VCHK_H__759990C4_C5B1_44C5_8CAE_C55BAE0E2D81__INCLUDED_)