[Ttssh2-commit] [3308] サンプル ( デバッグ用 ) TTXを追加

svnno****@sourc***** svnno****@sourc*****
2009年 4月 13日 (月) 19:26:02 JST


Revision: 3308
          http://svn.sourceforge.jp/view?root=ttssh2&view=rev&rev=3308
Author:   doda
Date:     2009-04-13 19:26:02 +0900 (Mon, 13 Apr 2009)

Log Message:
-----------
サンプル(デバッグ用)TTXを追加
・TTXShowCommandLine -- コマンドラインで指定された文字列を表示する

Modified Paths:
--------------
    trunk/TTXSamples/TTXSamples.sln

Added Paths:
-----------
    trunk/TTXSamples/TTXShowCommandLine/
    trunk/TTXSamples/TTXShowCommandLine/ReadMe-ja.txt
    trunk/TTXSamples/TTXShowCommandLine/ReadMe.txt
    trunk/TTXSamples/TTXShowCommandLine/TTXShowCommandLine.c
    trunk/TTXSamples/TTXShowCommandLine/TTXShowCommandLine.vcproj


-------------- next part --------------
Modified: trunk/TTXSamples/TTXSamples.sln
===================================================================
--- trunk/TTXSamples/TTXSamples.sln	2009-04-13 09:49:34 UTC (rev 3307)
+++ trunk/TTXSamples/TTXSamples.sln	2009-04-13 10:26:02 UTC (rev 3308)
@@ -28,6 +28,8 @@
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TTXRecurringCommand", "TTXRecurringCommand\TTXRecurringCommand.vcproj", "{3C656364-FAEA-41D2-B227-52187D3C2529}"
 EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TTXShowCommandLine", "TTXShowCommandLine\TTXShowCommandLine.vcproj", "{80ED9927-27F9-473A-802C-FB10DEB5ECC6}"
+EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Win32 = Debug|Win32
@@ -90,6 +92,10 @@
 		{3C656364-FAEA-41D2-B227-52187D3C2529}.Debug|Win32.Build.0 = Debug|Win32
 		{3C656364-FAEA-41D2-B227-52187D3C2529}.Release|Win32.ActiveCfg = Release|Win32
 		{3C656364-FAEA-41D2-B227-52187D3C2529}.Release|Win32.Build.0 = Release|Win32
+		{80ED9927-27F9-473A-802C-FB10DEB5ECC6}.Debug|Win32.ActiveCfg = Debug|Win32
+		{80ED9927-27F9-473A-802C-FB10DEB5ECC6}.Debug|Win32.Build.0 = Debug|Win32
+		{80ED9927-27F9-473A-802C-FB10DEB5ECC6}.Release|Win32.ActiveCfg = Release|Win32
+		{80ED9927-27F9-473A-802C-FB10DEB5ECC6}.Release|Win32.Build.0 = Release|Win32
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE


Property changes on: trunk/TTXSamples/TTXShowCommandLine
___________________________________________________________________
Added: svn:ignore
   + [Dd]ebug
[Rr]elease
*.ncb
*.suo
*.aps
*.vcproj.*.user


Added: trunk/TTXSamples/TTXShowCommandLine/ReadMe-ja.txt
===================================================================
--- trunk/TTXSamples/TTXShowCommandLine/ReadMe-ja.txt	                        (rev 0)
+++ trunk/TTXSamples/TTXShowCommandLine/ReadMe-ja.txt	2009-04-13 10:26:02 UTC (rev 3308)
@@ -0,0 +1,20 @@
+TTXShowCommandLine -- ƒRƒ}ƒ“ƒhƒ‰ƒCƒ“•¶Žš—ñ‚ð•\Ž¦‚·‚é
+
+‹@”\:
+  ‹N“®ŽžA‚¨‚æ‚ѐڑ±Žž‚̃Rƒ}ƒ“ƒhƒ‰ƒCƒ“•¶Žš—ñ‚ð•\Ž¦‚µ‚Ü‚·B
+  Žå‚ɃfƒoƒbƒO—p“r‚ð‘z’肵‚čì‚ç‚ê‚Ü‚µ‚½B
+
+‰ðà:
+  ‚±‚ÌTTX‚ð“ü‚ê‚é‚ƁA‚ǂ̂悤‚ȃRƒ}ƒ“ƒhƒ‰ƒCƒ“‚ªŽw’肳‚ꂽ‚©•\Ž¦‚³‚ê‚é‚悤‚É
+  ‚È‚è‚Ü‚·B
+  —Ⴆ‚΁ATeraTerm Menu‚âLogMeTT‚©‚ç‚ǂ̂悤‚ȃRƒ}ƒ“ƒhƒ‰ƒCƒ“‚Å‹N“®‚³‚ꂽ‚ª
+  Šm”F‚µ‚½‚èAttssh‚ªƒRƒ}ƒ“ƒhƒ‰ƒCƒ“‚ð‰ðŽß‚µ‚½Œ‹‰Ê‚ǂ̂悤‚ɏ‘‚«Š·‚¦‚½‚©‚ð
+  Šm”F‚µ‚½‚èo—ˆ‚Ü‚·B
+
+  ‚Ç‚Ì’iŠK‚ł̃Rƒ}ƒ“ƒhƒ‰ƒCƒ“‚ð•\Ž¦‚·‚é‚©‚́AORDER‚Ì’l‚Å’²®‚µ‚Ü‚·B
+  ƒfƒtƒHƒ‹ƒg‚Å‚Íttssh‚ʼnðŽß‚³‚ꂽŒã‚̃Rƒ}ƒ“ƒhƒ‰ƒCƒ“‚ð•\Ž¦‚µ‚Ü‚·‚ªA
+  ORDER‚ð2500‚æ‚菬‚³‚­‚·‚é‚ƁAttssh‚ʼnðŽß‚·‚é‘O‚̃Rƒ}ƒ“ƒhƒ‰ƒCƒ“‚ð
+  •\Ž¦‚µ‚Ü‚·B
+
+ƒoƒO:
+  ¡‚Ì‚Æ‚±‚댩‚‚©‚Á‚Ä‚¢‚Ü‚¹‚ñB

Added: trunk/TTXSamples/TTXShowCommandLine/ReadMe.txt
===================================================================
--- trunk/TTXSamples/TTXShowCommandLine/ReadMe.txt	                        (rev 0)
+++ trunk/TTXSamples/TTXShowCommandLine/ReadMe.txt	2009-04-13 10:26:02 UTC (rev 3308)
@@ -0,0 +1,7 @@
+TTXShowCommandLine -- Show command line options
+
+Feature:
+
+Description:
+
+Bug:

Added: trunk/TTXSamples/TTXShowCommandLine/TTXShowCommandLine.c
===================================================================
--- trunk/TTXSamples/TTXShowCommandLine/TTXShowCommandLine.c	                        (rev 0)
+++ trunk/TTXSamples/TTXShowCommandLine/TTXShowCommandLine.c	2009-04-13 10:26:02 UTC (rev 3308)
@@ -0,0 +1,81 @@
+#include "teraterm.h"
+#include "tttypes.h"
+#include "ttplugin.h"
+#include "tt_res.h"
+#include <stdlib.h>
+#include <stdio.h>
+
+#include "compat_w95.h"
+
+#define ORDER 2501
+
+static HANDLE hInst; /* Instance handle of TTX*.DLL */
+
+typedef struct {
+  PParseParam origParseParam;
+} TInstVar;
+
+static TInstVar FAR * pvar;
+static TInstVar InstVar;
+
+static void PASCAL FAR TTXParseParam(PCHAR Param, PTTSet ts, PCHAR DDETopic) {
+  MessageBox(NULL, Param, "TTXShowCommandLine", MB_OK|MB_ICONEXCLAMATION);
+  pvar->origParseParam(Param, ts, DDETopic);
+}
+
+static void PASCAL FAR TTXGetSetupHooks(TTXSetupHooks FAR *hooks) {
+  pvar->origParseParam = *hooks->ParseParam;
+  *hooks->ParseParam = TTXParseParam;
+}
+
+static TTXExports Exports = {
+  sizeof(TTXExports),
+  ORDER,
+
+  NULL, // TTXInit,
+  NULL, // TTXGetUIHooks,
+  TTXGetSetupHooks,
+  NULL, // TTXOpenTCP,
+  NULL, // TTXCloseTCP,
+  NULL, // TTXSetWinSize,
+  NULL, // TTXModifyMenu,
+  NULL, // TTXModifyPopupMenu,
+  NULL, // TTXProcessCommand,
+  NULL, // TTXEnd
+};
+
+BOOL __declspec(dllexport) PASCAL FAR TTXBind(WORD Version, TTXExports FAR * exports) {
+  int size = sizeof(Exports) - sizeof(exports->size);
+
+  if (size > exports->size) {
+    size = exports->size;
+  }
+  memcpy((char FAR *)exports + sizeof(exports->size),
+    (char FAR *)&Exports + sizeof(exports->size),
+    size);
+  return TRUE;
+}
+
+BOOL WINAPI DllMain(HANDLE hInstance,
+		    ULONG ul_reason_for_call,
+		    LPVOID lpReserved)
+{
+  switch( ul_reason_for_call ) {
+    case DLL_THREAD_ATTACH:
+      /* do thread initialization */
+      break;
+    case DLL_THREAD_DETACH:
+      /* do thread cleanup */
+      break;
+    case DLL_PROCESS_ATTACH:
+      /* do process initialization */
+      DoCover_IsDebuggerPresent();
+      hInst = hInstance;
+      pvar = &InstVar;
+      break;
+    case DLL_PROCESS_DETACH:
+      /* do process cleanup */
+      break;
+  }
+  return TRUE;
+}

Added: trunk/TTXSamples/TTXShowCommandLine/TTXShowCommandLine.vcproj
===================================================================
--- trunk/TTXSamples/TTXShowCommandLine/TTXShowCommandLine.vcproj	                        (rev 0)
+++ trunk/TTXSamples/TTXShowCommandLine/TTXShowCommandLine.vcproj	2009-04-13 10:26:02 UTC (rev 3308)
@@ -0,0 +1,199 @@
+<?xml version="1.0" encoding="shift_jis"?>
+<VisualStudioProject
+	ProjectType="Visual C++"
+	Version="8.00"
+	Name="TTXShowCommandLine"
+	ProjectGUID="{80ED9927-27F9-473A-802C-FB10DEB5ECC6}"
+	RootNamespace="TTXShowCommandLine"
+	Keyword="Win32Proj"
+	>
+	<Platforms>
+		<Platform
+			Name="Win32"
+		/>
+	</Platforms>
+	<ToolFiles>
+	</ToolFiles>
+	<Configurations>
+		<Configuration
+			Name="Debug|Win32"
+			OutputDirectory="..\$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="2"
+			CharacterSet="0"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="0"
+				AdditionalIncludeDirectories="..\..\teraterm\common;..\..\teraterm\teraterm"
+				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL"
+				MinimalRebuild="true"
+				BasicRuntimeChecks="3"
+				RuntimeLibrary="1"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="true"
+				DebugInformationFormat="4"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				LinkIncremental="2"
+				GenerateDebugInformation="true"
+				SubSystem="2"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCWebDeploymentTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+		<Configuration
+			Name="Release|Win32"
+			OutputDirectory="..\$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="2"
+			CharacterSet="0"
+			WholeProgramOptimization="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				AdditionalIncludeDirectories="..\..\teraterm\common;..\..\teraterm\teraterm"
+				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL"
+				RuntimeLibrary="0"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="true"
+				DebugInformationFormat="3"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				LinkIncremental="1"
+				GenerateDebugInformation="true"
+				SubSystem="2"
+				OptimizeReferences="2"
+				EnableCOMDATFolding="2"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCWebDeploymentTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+	</Configurations>
+	<References>
+	</References>
+	<Files>
+		<Filter
+			Name="Source Files"
+			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+			>
+			<File
+				RelativePath="TTXShowCommandLine.c"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="ReadMe"
+			>
+			<File
+				RelativePath="ReadMe-ja.txt"
+				>
+			</File>
+			<File
+				RelativePath="ReadMe.txt"
+				>
+			</File>
+		</Filter>
+	</Files>
+	<Globals>
+	</Globals>
+</VisualStudioProject>



Ttssh2-commit メーリングリストの案内