Re: Simplest way to bring console to front
- Posted by Larry Miller <larrymiller at sasktel.net> Oct 06, 2005
- 552 views
GetConsoleWindow is documented on MSDN http://msdn.microsoft.com/library/ A search for "GetConsoleWindow" will give a link to the functions documentation. The program below will show how GetConsoleWindow() can be used with euphoria
include dll.e include get.e atom Kernel32,xGetConsoleWindow Kernel32=open_dll("kernel32.dll") xGetConsoleWindow=define_c_func(Kernel32,"GetConsoleWindow",{},C_ULONG) puts(1,"\n") --Open console window ?c_func(xGetConsoleWindow,{}) ?wait_key()
This program will cause a Euphoria run-time error on an OS prior to Windows2000. See the Euphoria docs for further details. MSDN has a listing of which functions were introduced with Win2000 but it is rarely necessary to know this. With rare exceptions, functions introduced with Windows 95 will still work on Windows2000 and XP. The MSDN documentation indicates the system requirements for each function. Larry Miller