note 78114 deleted from ref.w32api by sobak
| From: | sobak@php.net | Date: | Sun, 04 Dec 2016 07:39:44 +0000 |
| Subject: | note 78114 deleted from ref.w32api by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208145@lists.php.net to get a copy of this message | ||
Note Submitter: sk89q
----
The only way I've been able to call Win32 API functions with PHP5 has been through COM and
DynamicWrapper.
Get DynamicWrapper at:
http://ourworld.compuserve.com/homepages/Guenter_Born/
WSHBazaar/WSHDynaCall.htm
(remove new line)
Here's an example to play a beep sound with your computer speaker:
<?php
$com = new COM("DynamicWrapper");
$com->Register("KERNEL32.DLL", "Beep", "i=ll", "f=s",
"r=l");
$com->Beep(5000, 100);
?>