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);
w32api_invoke_function
(PHP 4 >= 4.2.0)
w32api_invoke_function — Invokes function funcname with the arguments passed after the function name
Descripción
w32api_invoke_function() tries to find the previously registered function, passing the parameters you provided.
Lista de parámetros
- funcname
-
The function name.
- argument
-
Any of the arguments can be of any PHP type or w32api_deftype() defined type, as needed.
- ...
-
Valores retornados
The return type is the one you set when you registered the function, the value is the one returned by the function itself.
Notes
Esta función es EXPERIMENTAL. Esto significa que el comportamiento de esta función, el nombre de esta función y en definitiva TODO lo documentado sobre esta función, puede cambiar en una futura version de PHP SIN AVISO. La advertencia queda hecha, y utilizar esta extensión queda bajo su propia responsabilidad.
w32api_invoke_function
23-Apr-2002 05:01
