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.
73 lines
2.5 KiB
73 lines
2.5 KiB
// Copyright (c) 1998-1999 Microsoft Corporation
|
|
#ifdef NOMINMAX
|
|
#undef NOMINMAX
|
|
#endif
|
|
|
|
#include <winver.h>
|
|
#include <ntverp.h>
|
|
#include "tscon.h"
|
|
|
|
#define VER_FILETYPE VFT_APP
|
|
#define VER_FILESUBTYPE VFT2_UNKNOWN
|
|
#define VER_FILEDESCRIPTION_STR "Session Connection Utility"
|
|
#define VER_INTERNALNAME_STR "tscon"
|
|
#define VER_ORIGINALFILENAME_STR "tscon.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_WINSTATION_NOT_FOUND
|
|
L"Sessionname %s not found\n"
|
|
IDS_ERROR_INVALID_LOGONID
|
|
L"Invalid sessionID %s\n"
|
|
IDS_ERROR_LOGONID_NOT_FOUND
|
|
L"SessionID %lu not found\n"
|
|
IDS_ERROR_WINSTATION_CONNECT
|
|
L"Could not connect sessionID %lu to sessionname %s, Error code %lu\n"
|
|
IDS_ERROR_WINSTATION_CONNECT_CURRENT
|
|
L"Could not connect sessionID %lu to this session, Error code %lu\n"
|
|
IDS_ERROR_CANT_GET_CURRENT_WINSTATION
|
|
L"Could not get the current sessionname, Error code %lu\n"
|
|
IDS_ERROR_SERVER
|
|
L"Error opening Terminal server %s\n"
|
|
END
|
|
|
|
STRINGTABLE
|
|
BEGIN
|
|
IDS_WINSTATION_CONNECT
|
|
L"Connecting sessionID %lu to sessionname %s\n"
|
|
IDS_GET_PASSWORD
|
|
L"Type the password of user owning sessionID %lu:"
|
|
END
|
|
|
|
STRINGTABLE
|
|
BEGIN
|
|
IDS_USAGE_1
|
|
L"Attaches a user session to a terminal session.\n\n"
|
|
/* IDS_USAGE_2
|
|
L"TSCON [sessionid | sessionname] [/SERVER:servername] [/DEST:sessionname]\n" */
|
|
IDS_USAGE_2
|
|
L"TSCON {sessionid | sessionname} [/DEST:sessionname]\n"
|
|
IDS_USAGE_3
|
|
L" [/PASSWORD:pw | /PASSWORD:*] [/V]\n\n"
|
|
IDS_USAGE_4
|
|
L" sessionid The ID of the session.\n"
|
|
IDS_USAGE_5
|
|
L" sessionname The name of the session.\n"
|
|
/* IDS_USAGE_6
|
|
L" /SERVER:servername The name of the Terminal server to connect to (default is current).\n" */
|
|
IDS_USAGE_7
|
|
L" /DEST:sessionname Connect the session to destination sessionname.\n"
|
|
IDS_USAGE_8
|
|
L" /PASSWORD:pw Password of user owning identified session.\n"
|
|
IDS_USAGE_9
|
|
L" /V Displays information about the actions performed.\n\n"
|
|
IDS_ERROR_NOT_TS
|
|
L"This utility needs Terminal Services to be running.\n"
|
|
END
|