How can I call Win32 API calls from PHP?
2 answers
See the first comment here :
The only way I have been able to call Win32 API functions using PHP5 is through COM and DynamicWrapper.
Here's an example of how to play a beep using a computer speaker:
<?php
$com = new COM("DynamicWrapper");
$com->Register("KERNEL32.DLL", "Beep", "i=ll", "f=s", "r=l");
$com->Beep(5000, 100);
?>
You can get the updated DynamicWrapper here . You have to register it with regsvr32.
+4
source to share