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.

86 lines
2.2 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. typedef enum {parseOK, parseError, parseHelp, parseHelpImports} ParseResult;
  10. CommandLine() :
  11. m_last_flag (""),
  12. m_log_fname (""),
  13. m_drv_fname (""),
  14. m_parse_error (parseOK),
  15. m_error_msg (""),
  16. m_allowed(m_allowed_buf),
  17. m_append (TRUE),
  18. m_first_param(FALSE),
  19. CCommandLineInfo(),
  20. m_monitor(-1)
  21. {
  22. m_allowed[0] = 0;
  23. m_allowed[1] = 0;
  24. }
  25. virtual void ParseParam( LPCTSTR lpszParam, BOOL bFlag, BOOL bLast );
  26. BOOL m_append;
  27. char m_allowed_buf[2048];
  28. ParseResult m_parse_error;
  29. CString m_error_msg;
  30. CString m_log_fname;
  31. CString m_list_fname; // list of drivers failed, passed and those produced warnings
  32. CString m_drv_fname;
  33. int m_monitor;
  34. private:
  35. char* m_allowed;
  36. CString m_last_flag;
  37. BOOL m_first_param;
  38. };
  39. /////////////////////////////////////////////////////////////////////////////
  40. // CDrvchkApp:
  41. // See drvchk.cpp for the implementation of this class
  42. //
  43. class CDrvchkApp : public CWinApp
  44. {
  45. public:
  46. CDrvchkApp();
  47. // Overrides
  48. // ClassWizard generated virtual function overrides
  49. //{{AFX_VIRTUAL(CDrvchkApp)
  50. public:
  51. virtual BOOL InitInstance();
  52. //}}AFX_VIRTUAL
  53. protected:
  54. void ChkDriver (CString drv_name);
  55. BOOL CheckDriverAndPrintResults (void);
  56. void PrintOut (LPCSTR str);
  57. void PrintOut (unsigned num);
  58. void ListOut (LPCSTR str);
  59. void ListOut (unsigned num);
  60. private:
  61. FILE* m_logf;
  62. FILE* m_listf;
  63. CommandLine m_cmd_line;
  64. OSVERSIONINFO m_os_ver_info;
  65. CString m_drv_name;
  66. // CDriverList m_drv_list;
  67. };
  68. /////////////////////////////////////////////////////////////////////////////
  69. #endif // !defined(AFX_VCHK_H__759990C4_C5B1_44C5_8CAE_C55BAE0E2D81__INCLUDED_)