Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /trunk/teraterm/teraterm/ttplug.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9487 - (hide annotations) (download) (as text)
Fri Oct 22 16:09:36 2021 UTC (2 years, 5 months ago) by zmatsuo
File MIME type: text/x-chdr
File size: 3737 byte(s)
TTXSetCommandLine() 引数を wchar_t * に変更

- コマンドラインの作成文字列を Unicode に変更
1 doda 6806 /*
2     * Copyright (C) 1994-1998 T. Teranishi
3     * (C) Robert O'Callahan
4 nmaya 9048 * (C) 2008- TeraTerm Project
5 doda 6806 * All rights reserved.
6     *
7 doda 6841 * Redistribution and use in source and binary forms, with or without
8     * modification, are permitted provided that the following conditions
9     * are met:
10 doda 6806 *
11 doda 6841 * 1. Redistributions of source code must retain the above copyright
12     * notice, this list of conditions and the following disclaimer.
13     * 2. Redistributions in binary form must reproduce the above copyright
14     * notice, this list of conditions and the following disclaimer in the
15     * documentation and/or other materials provided with the distribution.
16     * 3. The name of the author may not be used to endorse or promote products
17     * derived from this software without specific prior written permission.
18 doda 6806 *
19 doda 6841 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
20     * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21     * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22     * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
23     * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24     * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25     * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26     * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27     * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28     * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 doda 6806 */
30 maya 3227 #ifndef __TTPLUG_H
31     #define __TTPLUG_H
32    
33     #ifdef __cplusplus
34     extern "C" {
35     #endif
36    
37     /* This function initializes the extensions and is called at the beginning
38     of the program. */
39 doda 6801 void PASCAL TTXInit(PTTSet ts, PComVar cv);
40 maya 3227
41     /* This function is called when a TCP connection is about to be opened.
42     This macro stuff is to make sure that the functions in the caller's
43     EXE or DLL are hooked. */
44 zmatsuo 9223 void PASCAL TTXOpenTCP(void);
45 maya 3227
46     /* This function is called when a TCP connection has been closed.
47     This macro stuff is to make sure that the functions in the caller's
48     EXE or DLL are hooked. */
49 zmatsuo 9223 void PASCAL TTXCloseTCP(void);
50 maya 3227
51 zmatsuo 9223 void PASCAL TTXOpenFile(void);
52 maya 3227
53 zmatsuo 9223 void PASCAL TTXCloseFile(void);
54 maya 3227
55     /* This function is called after the TTDLG DLL has been loaded.
56     This macro stuff is to make sure that the functions in the caller's
57     EXE or DLL are hooked. */
58 zmatsuo 9223 void PASCAL TTXGetUIHooks(void);
59 maya 3227
60     /* This function is called after the TTSET DLL has been loaded.
61     This macro stuff is to make sure that the functions in the caller's
62     EXE or DLL are hooked. */
63 zmatsuo 9223 void PASCAL TTXGetSetupHooks(void);
64 maya 3227
65     /* This function is called when the window size has changed. */
66 doda 6801 void PASCAL TTXSetWinSize(int rows, int cols);
67 maya 3227
68     /* This function adds the extensions' entries to the menu, which is the
69     handle for the program's menubar. */
70 doda 6801 void PASCAL TTXModifyMenu(HMENU menu);
71 maya 3227
72     /* This function is called when a popup menu is about to be displayed.
73     The status of the entries is set appropriately. */
74 doda 6801 void PASCAL TTXModifyPopupMenu(HMENU menu);
75 maya 3227
76     /* This function calls on the extensions to handle a command. It returns
77     TRUE if they handle it, otherwise FALSE. */
78 doda 6801 BOOL PASCAL TTXProcessCommand(HWND hWin, WORD cmd);
79 maya 3227
80     /* This function is called to see whether Telnet mode can be turned on when
81     Tera Term thinks it has detected a telnetd */
82 doda 6801 void PASCAL TTXEnd(void);
83 maya 3227
84     /* This function is called when a new Tera Term is being started with certain
85     settings and the extension may wish to add some options to the command line */
86 zmatsuo 9487 void PASCAL TTXSetCommandLine(wchar_t *cmd, int cmdlen, PGetHNRec rec);
87 maya 3227 #ifdef __cplusplus
88     }
89     #endif
90    
91     #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26