Group: Console - Library: kernel32
Saying "Hello World!" with VFP and WinAPI
Creating a console window for Visual FoxPro application
BOOL AllocConsole(void);
DECLARE INTEGER AllocConsole IN kernel32
This function has no parameters.
If the function succeeds, the return value is nonzero.
A process can be associated with only one console, so the AllocConsole function fails if the calling process already has a console. A process can use the FreeConsole function to detach itself from its current console, then it can call AllocConsole to create a new console or AttachConsole to attach to another console.