Using Win32 functions in Visual FoxPro Image Gallery
Console
..msdn
AllocConsole
FillConsoleOutputAttribute
FillConsoleOutputCharacter
FreeConsole
GetConsoleScreenBufferInfo
GetConsoleWindow
GetStdHandle
ReadConsole
SetConsoleCursorPosition
SetConsoleTextAttribute
SetConsoleTitle
WriteConsole
Code examples:
Creating a console window for Visual FoxPro application
ReadConsole
..msdn    Add comment     W32 Constants      Translate this page
The ReadConsole function reads character input from the console input buffer and removes it from the buffer.
Code examples:
Creating a console window for Visual FoxPro application
Declaration:
BOOL ReadConsole(
  HANDLE hConsoleInput,
  LPVOID lpBuffer,
  DWORD nNumberOfCharsToRead,
  LPDWORD lpNumberOfCharsRead,
  LPVOID lpReserved
);
FoxPro declaration:
DECLARE INTEGER ReadConsole IN kernel32;
    INTEGER   hConsoleInput,;
    STRING  @ lpBuffer,;
    INTEGER   nNumberOfCharsToRead,;
    INTEGER @ lpNumberOfCharsRead,;
    INTEGER   lpReserved

Parameters:
hConsoleInput
[in] Handle to the console input buffer.

lpBuffer
[out] Pointer to a buffer that receives the data read from the console input buffer.

nNumberOfCharsToRead
[in] Number of TCHARs to read.

lpNumberOfCharsRead
[out] Pointer to a variable that receives the number of TCHARs actually read.

lpReserved
[in] Reserved; must be NULL.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
The total size of the buffer required will be less than 64K.

Use GetStdHandle with STD_INPUT_HANDLE to obtain the handle to the console input buffer.

See also: WriteConsole.
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-11-10 09:25:54
Modified: 2004-11-10 09:29:20
Visited in last 7 days: 26
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.163.210.170)
8 sec.Function: 'GetUrlCacheEntryInfo'
18 sec.Function: 'CryptDecrypt'
26 sec.Function: 'GetSystemMetrics'
35 sec.Function: 'RemoveProp'
44 sec.Function: 'GetSystemDefaultLangID'
52 sec.
Function group: 'System Information'
1.03 min.Function: 'waveOutGetDevCaps'
1.17 min.
Function group: 'Performance Monitoring'
1.3 min.Function: 'GdiplusStartup'
1.45 min.Function: 'GdipDrawImageRectRectI'
Google
Advertise here!