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.

72 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1991-1993 Microsoft Corporation
  3. Module Name:
  4. unlodctr.c
  5. Abstract:
  6. Program to remove the counter names belonging to the driver specified
  7. in the command line and update the registry accordingly
  8. Author:
  9. Bob Watson (a-robw) 12 Feb 93
  10. Revision History:
  11. --*/
  12. #define UNICODE 1
  13. #define _UNICODE 1
  14. //
  15. // Windows Include files
  16. //
  17. #include <windows.h>
  18. #include <tchar.h>
  19. #include <loadperf.h>
  20. int
  21. __cdecl main(
  22. int argc,
  23. char *argv[]
  24. )
  25. /*++
  26. main
  27. entry point to Counter Name Unloader
  28. Arguments
  29. argc
  30. # of command line arguments present
  31. argv
  32. array of pointers to command line strings
  33. (note that these are obtained from the GetCommandLine function in
  34. order to work with both UNICODE and ANSI strings.)
  35. ReturnValue
  36. 0 (ERROR_SUCCESS) if command was processed
  37. Non-Zero if command error was detected.
  38. --*/
  39. {
  40. LPTSTR lpCommandLine;
  41. UNREFERENCED_PARAMETER (argc);
  42. UNREFERENCED_PARAMETER (argv);
  43. lpCommandLine = GetCommandLine(); // get command line
  44. return (int)UnloadPerfCounterTextStrings (
  45. lpCommandLine,
  46. FALSE); // show text strings to console
  47. }