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.

61 lines
1.1 KiB

  1. /*
  2. **++
  3. **
  4. ** Copyright (c) 2000-2001 Microsoft Corporation
  5. **
  6. **
  7. ** Module Name:
  8. **
  9. ** main.cpp
  10. **
  11. **
  12. ** Abstract:
  13. **
  14. ** Test program to create a backup/multilayer snapshot set
  15. **
  16. ** Author:
  17. **
  18. ** Adi Oltean [aoltean] 02/22/2001
  19. **
  20. ** Revision History:
  21. **
  22. **--
  23. */
  24. ///////////////////////////////////////////////////////////////////////////////
  25. // Includes
  26. #include "ml.h"
  27. ///////////////////////////////////////////////////////////////////////////////
  28. // Main functions
  29. extern "C" __cdecl wmain(int argc, WCHAR **argv)
  30. {
  31. CVssFunctionTracer ft(VSSDBG_VSSTEST, L"wmain");
  32. try
  33. {
  34. CVssMultilayerTest test(argc-1, argv+1);
  35. // Parsing the command line
  36. // Eliminate the first argument (program name)
  37. if (test.ParseCommandLine())
  38. {
  39. // Initialize internal objects
  40. test.Initialize();
  41. // Run the tests
  42. test.Run();
  43. }
  44. }
  45. VSS_STANDARD_CATCH(ft)
  46. if (ft.HrFailed())
  47. wprintf(L"\nError catched at program termination: 0x%08lx\n", ft.hr);
  48. return ft.HrFailed() ? 1: 0;
  49. }