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.

101 lines
2.9 KiB

  1. //
  2. // Driver Verifier UI
  3. // Copyright (c) Microsoft Corporation, 1999
  4. //
  5. //
  6. //
  7. // module: CmdLine.h
  8. // author: DMihai
  9. // created: 11/1/00
  10. //
  11. // Description:
  12. //
  13. #ifndef __CMD_LINE_H_INCLUDED__
  14. #define __CMD_LINE_H_INCLUDED__
  15. /////////////////////////////////////////////////////////////////////////////
  16. //
  17. // Execute command line
  18. //
  19. DWORD CmdLineExecute( INT argc,
  20. TCHAR *argv[] );
  21. /////////////////////////////////////////////////////////////////////////////
  22. //
  23. // See if the user asked for help and print out the help strings
  24. //
  25. BOOL CmdLineExecuteIfHelp( INT argc,
  26. TCHAR *argv[] );
  27. /////////////////////////////////////////////////////////////////////////////
  28. //
  29. // Print out help information
  30. //
  31. VOID CmdLinePrintHelpInformation();
  32. /////////////////////////////////////////////////////////////////////////////
  33. //
  34. // See if the user asked to reset all the existing verifier settings
  35. //
  36. BOOL CmdLineFindResetSwitch( INT argc,
  37. TCHAR *argv[] );
  38. /////////////////////////////////////////////////////////////////////////////
  39. //
  40. // See if we need to start logging statistics
  41. //
  42. BOOL CmdLineExecuteIfLog( INT argc,
  43. TCHAR *argv[] );
  44. /////////////////////////////////////////////////////////////////////////////
  45. //
  46. // See if we need to start logging statistics
  47. //
  48. BOOL CmdLineExecuteIfQuery( INT argc,
  49. TCHAR *argv[] );
  50. /////////////////////////////////////////////////////////////////////////////
  51. //
  52. // See if we need to dump the statistics to the console
  53. //
  54. BOOL CmdLineExecuteIfQuerySettings( INT argc,
  55. TCHAR *argv[] );
  56. /////////////////////////////////////////////////////////////////////////////
  57. //
  58. // Get the new flags, drivers and volatile
  59. // if they have been specified
  60. //
  61. VOID CmdLineGetFlagsDriversVolatile( INT argc,
  62. TCHAR *argv[],
  63. DWORD &dwNewFlags,
  64. BOOL &bHaveNewFlags,
  65. CStringArray &astrNewDrivers,
  66. BOOL &bHaveNewDrivers,
  67. BOOL &bHaveVolatile,
  68. BOOL &bVolatileAddDriver ); // TRUE if /adddriver, FALSE if /removedriver
  69. /////////////////////////////////////////////////////////////////////////////
  70. //
  71. // Everything that follows after /driver, /adddriver, /removedriver
  72. // should be driver names. Extract these from the command line
  73. //
  74. VOID CmdLineGetDriversFromArgv( INT argc,
  75. TCHAR *argv[],
  76. INT nFirstDriverArgIndex,
  77. CStringArray &astrNewDrivers,
  78. BOOL &bHaveNewDrivers );
  79. #endif //#ifndef __CMD_LINE_H_INCLUDED__