Group: Console - Library: kernel32
The GetStdHandle function retrieves a handle for the standard input, standard output, or standard error device.
Saying "Hello World!" with VFP and WinAPI
Creating a console window for Visual FoxPro application
HANDLE GetStdHandle(
DWORD nStdHandle
);
DECLARE INTEGER GetStdHandle IN kernel32;
LONG nStdHandle
nStdHandle [in] Standard device for which a handle is to be returned.
If the function succeeds, the return value is a handle to the specified device, or a redirected handle set by a previous call to SetStdHandle.
See also: SetStdHandle, WriteConsole, WriteFile, CloseHandle.