Re: Accessing Win32 hardware

From: Date: Thu, 08 Nov 2001 20:29:46 +0000
Subject: Re: Accessing Win32 hardware
References: 1 2 3 4  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-557@lists.php.net to get a copy of this message
> On Thu, 08 Nov 2001, James Moore wrote: > > Can I make it clear that this extension WILL change, I have a few plans to > > change the w32api_register_function function so that it accepts a VB like > > declare statement. (Just wanted to make it clear that the extension is VERY > > experimental :)) > > So was PHP-GTK. :) Good job anyway, James. :) well its one of the things that MSFT cited as one of PHP's weakness' and I thought thats not good enough :) 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(); } ?> - James

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