Re: Accessing Win32 hardware

From: Date: Thu, 08 Nov 2001 20:31:00 +0000
Subject: Re: Accessing Win32 hardware
References: 1 2 3 4 5  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-558@lists.php.net to get a copy of this message
On Thu, 08 Nov 2001, James Moore wrote: > Anyway one thing that might be of interest for PHP-GTK users on win32 is > being able to kill the console that is used to launch your PHP-GTK > application (It wont disappear if you run cmd and then run your script from > there as cmd is still associated with the console so even if you kill your > association of the console it keeps it :)) Anyway if you have the w32api > extension you can do the following: > > <?php > > dl("php_w32api.dll"); > > function kill_console() > { > w32api_register_function("kernel32.dll", "FreeConsole", > "long"); > FreeConsole(); > } > > ?> One suggestions: have the registered functions have a prefix of win32 or something. Otherwise you might get name conflicts. -Andrei * It's an emergent property of human minds to create. *

« previous php.gtk.general (#558) next »