--- mstools/samples/comm/tty.h 2018/08/09 18:22:16 1.1.1.2 +++ mstools/samples/comm/tty.h 2018/08/09 18:24:33 1.1.1.3 @@ -1,26 +1,20 @@ -//--------------------------------------------------------------------------- -// -// Module: tty.h -// -// Purpose: -// This is the header file for the TTY sample. -// -// Development Team: -// Bryan A. Woodruff -// -// History: Date Author Comment -// 5/ 9/91 BryanW Wrote it. -// -//--------------------------------------------------------------------------- -// -// Written by Microsoft Product Support Services, Windows Developer Support. -// Copyright (c) 1991 Microsoft Corporation. All Rights Reserved. -// -//--------------------------------------------------------------------------- + +/******************************************************************************\ +* This is a part of the Microsoft Source Code Samples. +* Copyright (C) 1993 Microsoft Corporation. +* All rights reserved. +* This source code is only intended as a supplement to +* Microsoft Development Tools and/or WinHelp documentation. +* See these sources for detailed information regarding the +* Microsoft samples programs. +\******************************************************************************/ + #define USECOMM // yes, we need the COMM API -#undef NO_STRICT // be bold! +//#undef NO_STRICT // be bold! + +//#define HINSTANCE HANDLE #ifndef WIN32 #define WIN31 // this is a Windows 3.1 application @@ -47,6 +41,12 @@ #define ATOM_TTYINFO 0x100 +// hard coded maximum number of ports for device under Win32 + +#ifdef WIN32 +#define MAXPORTS 4 +#endif + // terminal size #define MAXROWS 25 @@ -83,6 +83,7 @@ // thread in Win32 #ifdef WIN32 +#define WM_COMMNOTIFY 0x0044 #define CN_EVENT 0x04 #endif