Windows NT 4.0 source code leak
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.

68 lines
1.1 KiB

4 years ago
  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. _CRTAPI1 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. lpCommandLine = GetCommandLine(); // get command line
  42. return UnloadPerfCounterTextStrings (
  43. lpCommandLine,
  44. FALSE); // show text strings to console
  45. }