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.
|
|
//Copyright (c) 1998 - 1999 Microsoft Corporation #ifdef NOMINMAX #undef NOMINMAX #endif
#include <winver.h> #include <ntverp.h> #include "tskill.h"
#define VER_FILETYPE VFT_APP #define VER_FILESUBTYPE VFT2_UNKNOWN #define VER_FILEDESCRIPTION_STR "Terminal Services End Process Utility" #define VER_INTERNALNAME_STR "tskill" #define VER_ORIGINALFILENAME_STR "tskill.exe"
#include <verall.h> #include "common.ver"
STRINGTABLE BEGIN IDS_ERROR_MALLOC L"Error allocating memory\n" IDS_ERROR_INVALID_PARAMETERS L"Invalid parameter(s)\n" IDS_ERROR_BAD_PID_NUMBER L"Bad PID number %s\n" IDS_ERROR_KILL_PROCESS_FAILED L"End Process failed for %s:" IDS_ERROR_SERVER L"Error opening Terminal server %s\n" END
STRINGTABLE BEGIN IDS_KILL_PROCESS L"End Process(%u)\n" IDS_ERROR_BAD_PROCESS L"Could not find process: %s\n" IDS_ERROR_ID_ABSENT L"Specify either /ID or /A flag for the server: %s\n" IDS_ERROR_ENUM_PROCESS L"Fail to enumerate processes\n" IDS_USAGE1 L"Ends a process.\n\n" IDS_USAGE2 L"TSKILL processid | processname [/SERVER:servername] [/ID:sessionid | /A] [/V]\n\n" IDS_USAGE3 L" processid Process ID for the process to be terminated.\n" IDS_USAGE4 L" processname Process name to be terminated.\n" IDS_USAGE5 L" /SERVER:servername Server containing processID (default is current).\n" IDS_USAGE6 L" /ID or /A must be specified when using processname\n" IDS_USAGE7 L" and /SERVER\n" IDS_USAGE8 L" /ID:sessionid End process running under the specified session.\n" IDS_USAGE9 L" /A End process running under ALL sessions.\n" IDS_USAGEA L" /V Display information about actions being performed.\n\n" IDS_ERROR_NOT_TS L"This utility needs Terminal Services to be running.\n" END
|