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

/*++
Copyright (c) 1991-1993 Microsoft Corporation
Module Name:
unlodctr.c
Abstract:
Program to remove the counter names belonging to the driver specified
in the command line and update the registry accordingly
Author:
Bob Watson (a-robw) 12 Feb 93
Revision History:
--*/
#define UNICODE 1
#define _UNICODE 1
//
// Windows Include files
//
#include <windows.h>
#include <tchar.h>
#include <loadperf.h>
int
_CRTAPI1 main(
int argc,
char *argv[]
)
/*++
main
entry point to Counter Name Unloader
Arguments
argc
# of command line arguments present
argv
array of pointers to command line strings
(note that these are obtained from the GetCommandLine function in
order to work with both UNICODE and ANSI strings.)
ReturnValue
0 (ERROR_SUCCESS) if command was processed
Non-Zero if command error was detected.
--*/
{
LPTSTR lpCommandLine;
lpCommandLine = GetCommandLine(); // get command line
return UnloadPerfCounterTextStrings (
lpCommandLine,
FALSE); // show text strings to console
}