Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/teraterm/common/ttcommon.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10617 - (show annotations) (download) (as text)
Fri Mar 3 15:15:04 2023 UTC (12 months ago) by zmatsuo
File MIME type: text/x-chdr
File size: 3385 byte(s)
lngファイル名変数を ANSI版から Unicode 版へ切り替え

- get_lang_msgW() -> GetI18nStrWW()
- SetDlgTexts() -> SetDlgTextsW()
- SetWinMenu() を SetWinMenuW() に置き換え
  - ttpcmn/ttcmn.c, def
1 /*
2 * Copyright (C) 1994-1998 T. Teranishi
3 * (C) 2004- TeraTerm Project
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 3. The name of the author may not be used to endorse or promote products
16 * derived from this software without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
19 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */
29
30 /* TERATERM.EXE, TTCMN interface */
31
32 /* proto types */
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36
37 #if !defined(DllExport)
38 #define DllExport __declspec(dllimport)
39 #endif
40
41 DllExport void PASCAL SetCOMFlag(int com);
42 DllExport void PASCAL ClearCOMFlag(int com);
43 DllExport int PASCAL CheckCOMFlag(int com);
44
45 DllExport int PASCAL RegWin(HWND HWinVT, HWND HWinTEK);
46 DllExport void PASCAL UnregWin(HWND HWin);
47 DllExport void WINAPI SetWinMenuW(HMENU menu, const wchar_t *langFile, int VTFlag);
48 DllExport void PASCAL SetWinList(HWND HWin, HWND HDlg, int IList);
49 DllExport void PASCAL SelectWin(int WinId);
50 DllExport void PASCAL SelectNextWin(HWND HWin, int Next, BOOL SkipIconic);
51 DllExport HWND PASCAL GetNthWin(int n);
52 DllExport int PASCAL GetRegisteredWindowCount(void);
53 DllExport void PASCAL ShowAllWin(int stat);
54 DllExport void PASCAL ShowAllWinSidebySide(HWND);
55 DllExport void PASCAL ShowAllWinStacked(HWND);
56 DllExport void PASCAL ShowAllWinCascade(HWND);
57 DllExport void PASCAL BroadcastClosingMessage(HWND myhwnd);
58 DllExport void PASCAL UndoAllWin(void);
59
60 DllExport int PASCAL CommReadRawByte(PComVar cv, LPBYTE b);
61 DllExport int PASCAL CommRead1Byte(PComVar cv, LPBYTE b);
62 DllExport void PASCAL CommInsert1Byte(PComVar cv, BYTE b);
63 DllExport int PASCAL CommRawOut(PComVar cv, PCHAR B, int C);
64 DllExport int PASCAL CommBinaryOut(PComVar cv, PCHAR B, int C);
65 DllExport int PASCAL CommBinaryBuffOut(PComVar cv, PCHAR B, int C);
66 DllExport int PASCAL CommTextOutW(PComVar cv, const wchar_t *B, int C);
67 DllExport int PASCAL CommBinaryEcho(PComVar cv, PCHAR B, int C);
68 DllExport int PASCAL CommTextEchoW(PComVar cv, const wchar_t *B, int C);
69
70 #ifdef __cplusplus
71 }
72 #endif
73
74 #include "../ttpcmn/language.h"
75 #include "../ttpcmn/ttcmn_cominfo.h"
76 #include "../ttpcmn/ttcmn_notify.h"
77 #include "../ttpcmn/ttcmn_lib.h"

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