Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.17 KB

GetStdHandle.md

File metadata and controls

50 lines (32 loc) · 1.17 KB

Home

Function name : GetStdHandle

Group: Console - Library: kernel32


The GetStdHandle function retrieves a handle for the standard input, standard output, or standard error device.


Code examples:

Saying "Hello World!" with VFP and WinAPI
Creating a console window for Visual FoxPro application

Declaration:

HANDLE GetStdHandle(
  DWORD nStdHandle
);
  

FoxPro declaration:

DECLARE INTEGER GetStdHandle IN kernel32;
	LONG nStdHandle  

Parameters:

nStdHandle [in] Standard device for which a handle is to be returned.


Return value:

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.


Comments:

See also: SetStdHandle, WriteConsole, WriteFile, CloseHandle.