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.

49 lines
1.1 KiB

  1. //+-----------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (c) Microsoft Corporation 2000
  6. //
  7. // File: M A I N . C P P
  8. //
  9. // Contents: The main fn
  10. //
  11. //
  12. // History:
  13. // 07-January-2000 kumarp created
  14. //
  15. //------------------------------------------------------------------------
  16. #include "pch.h"
  17. #pragma hdrstop
  18. #include "adttest.h"
  19. extern "C" int __cdecl wmain(int argc, PWSTR argv[])
  20. {
  21. ULONG NumThreads = 1;
  22. ULONG NumIter = 10;
  23. if ( argc == 2 )
  24. {
  25. swscanf(argv[1], L"%d", &NumThreads);
  26. }
  27. if ( argc == 3 )
  28. {
  29. swscanf(argv[1], L"%d", &NumThreads);
  30. swscanf(argv[2], L"%d", &NumIter);
  31. }
  32. printf("TestEventGenMulti: #threads: %d\t#iterations: %d...\n",
  33. NumThreads, NumIter);
  34. //getchar();
  35. TestEventGenMulti( (USHORT) NumThreads, NumIter );
  36. printf("TestEventGenMulti: done\n");
  37. UNREFERENCED_PARAMETER(argc);
  38. UNREFERENCED_PARAMETER(argv);
  39. return 0;
  40. }