--- mstools/samples/console/coninfo.c 2018/08/09 18:21:19 1.1.1.2 +++ mstools/samples/console/coninfo.c 2018/08/09 18:23:15 1.1.1.3 @@ -1,10 +1,19 @@ + +/******************************************************************************\ +* 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. +\******************************************************************************/ + #include #include +#include #include "console.h" -/* Microsoft Developer Support - Copyright (c) 1992 Microsoft Corporation */ - /******************************************************************* * FUNCTION: demoConInfo(HANDLE hConOut) * * * @@ -22,11 +31,14 @@ void demoConInfo(HANDLE hConOut) CHAR szTemp[128]; setConTitle(__FILE__); + myPuts(hConOut, "For information on the console buffer, we need to call\n" + "GetConsoleScreenBufferInfo. Make any adjustments to the\n" + "screen buffer/console window now, then hit return...\n"); + myGetchar(); bSuccess = GetConsoleScreenBufferInfo(hConOut, &csbi); PERR(bSuccess, "GetConsoleScreenBufferInfo"); - myPuts(hConOut, "For information on the console buffer, we need to call\n" - "GetConsoleScreenBufferInfo. Here is the information from\n" - "the buffer returned, the CONSOLE_SCREEN_BUFFER_INFO:"); + myPuts(hConOut, "\nHere is the information on the buffer returned in the\n" + "CONSOLE_SCREEN_BUFFER_INFO structure:"); sprintf(szTemp, "Size: X = %d, Y = %d", csbi.dwSize.X, csbi.dwSize.Y); myPuts(hConOut, szTemp); sprintf(szTemp, "Cursor pos: X = %d, Y = %d", csbi.dwCursorPosition.X, @@ -41,7 +53,7 @@ void demoConInfo(HANDLE hConOut) sprintf(szTemp, "Maximum window size: X = %d, Y = %d", csbi.dwMaximumWindowSize.X, csbi.dwMaximumWindowSize.Y); myPuts(hConOut, szTemp); - myPuts(hConOut, "\nHit enter to return..."); + myPuts(hConOut, "\nHit any key to return..."); myGetchar(); return; }