Win32API Functions

  • 18 years ago

    Has anyone tried using the PHP win32api call functions in PHP 4.2


    I am running Apache/2.0.35 (Win32) with PHP/4.2.0RC4 on WinNT4
    and evry time I try to register a win32 api call Apache just crashes.


    the code that I am trying to run is:


    Code:

    <?php
     w32apiregisterfunction("user32.dll", "FindWindowA", "long");
     w32apiregisterfunction("user32.dll", "SendMessageA", "long");
     $hwndWinamp = FindWindowA("Winamp v1.x",NULL);
     $sucess = SendMessageA($hwndWinamp,40047,0,0);
    ;?>


    I've also tried the example that has been posted on the PHP documentation site, but that also crashes Apache.


    any ideas?

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There's no test like production” - Anon