w32api_invoke_function

(PHP 4 >= 4.2.0)

w32api_invoke_functionInvokes function funcname with the arguments passed after the function name

Beschreibung

mixed w32api_invoke_function ( string $funcname , mixed $argument [, mixed $... ] )

w32api_invoke_function() tries to find the previously registered function, passing the parameters you provided.

Parameter-Liste

funcname

The function name.

argument

Any of the arguments can be of any PHP type or w32api_deftype() defined type, as needed.

...

Rückgabewerte

The return type is the one you set when you registered the function, the value is the one returned by the function itself.

Anmerkungen

Warnung

Diese Funktion ist EXPERIMENTELL. Das Verhalten, der Funktionsname und alles Andere, was hier dokumentiert ist, kann sich in zukünftigen PHP-Versionen ohne Ankündigung ändern. Seien Sie gewarnt und verwenden Sie diese Funktion auf eigenes Risiko.

add a note add a note

User Contributed Notes 1 note

up
1
ryan at wonko dot com
11 years ago
As of PHP 4.2.0, this function doesn't appear to do anything useful (nor does it even work). Instead, use w32api_register_function to register your function and then simply call the function you registered just like you would call any normal PHP function. For example, the following snippet will display a standard messagebox:

w32api_register_function("User32.dll",
                         "MessageBoxA",
                         "long");
MessageBoxA(NULL,
            "Hello World!",
            "PHP MessageBox",
            0);
To Top