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

#if !defined(AFX_VCHK_H__759990C4_C5B1_44C5_8CAE_C55BAE0E2D81__INCLUDED_)
#define AFX_VCHK_H__759990C4_C5B1_44C5_8CAE_C55BAE0E2D81__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// #include "driverlist.h"
class CommandLine : public CCommandLineInfo {
public:
typedef enum {parseOK, parseError, parseHelp, parseHelpImports} ParseResult;
CommandLine() :
m_last_flag (""),
m_log_fname (""),
m_drv_fname (""),
m_parse_error (parseOK),
m_error_msg (""),
m_allowed(m_allowed_buf),
m_append (TRUE),
m_first_param(FALSE),
CCommandLineInfo(),
m_monitor(-1)
{
m_allowed[0] = 0;
m_allowed[1] = 0;
}
virtual void ParseParam( LPCTSTR lpszParam, BOOL bFlag, BOOL bLast );
BOOL m_append;
char m_allowed_buf[2048];
ParseResult m_parse_error;
CString m_error_msg;
CString m_log_fname;
CString m_list_fname; // list of drivers failed, passed and those produced warnings
CString m_drv_fname;
int m_monitor;
private:
char* m_allowed;
CString m_last_flag;
BOOL m_first_param;
};
/////////////////////////////////////////////////////////////////////////////
// CDrvchkApp:
// See drvchk.cpp for the implementation of this class
//
class CDrvchkApp : public CWinApp
{
public:
CDrvchkApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDrvchkApp)
public:
virtual BOOL InitInstance();
//}}AFX_VIRTUAL
protected:
void ChkDriver (CString drv_name);
BOOL CheckDriverAndPrintResults (void);
void PrintOut (LPCSTR str);
void PrintOut (unsigned num);
void ListOut (LPCSTR str);
void ListOut (unsigned num);
private:
FILE* m_logf;
FILE* m_listf;
CommandLine m_cmd_line;
OSVERSIONINFO m_os_ver_info;
CString m_drv_name;
// CDriverList m_drv_list;
};
/////////////////////////////////////////////////////////////////////////////
#endif // !defined(AFX_VCHK_H__759990C4_C5B1_44C5_8CAE_C55BAE0E2D81__INCLUDED_)