[fpc-pascal]Obtaining Windows API handle of a new console.
Marco van de Voort
marcov at stack.nl
Sat Apr 21 10:14:17 CEST 2001
> I've looked all through the Windows API help system but I've failed to find
> a method for obtaining the handle of the current console process.
>
> Eg. I start prog.exe. I want prog.exe to find out the handle that points to
> itself, that Windows has created for it.
Afaik it is GetActiveWindow.
See also http://www.freepascal.org/faq.html#win32graph
More information about the fpc-pascal
mailing list