w32api_invoke_function
(PHP 4 >= 4.2.0)
w32api_invoke_function — Invokes function funcname with the arguments passed after the function name
Description
w32api_invoke_function() tries to find the previously registered function, passing the parameters you provided.
Parameters
-
funcname
-
The function name.
-
argument
-
Any of the arguments can be of any PHP type or w32api_deftype() defined type, as needed.
-
...
-
Return Values
The return type is the one you set when you registered the function, the value is the one returned by the function itself.
Notes
This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk.
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Расширения только для Windows
- W32api
- w32api_deftype
- w32api_init_dtype
- w32api_invoke_function
- w32api_register_function
- w32api_set_call_method
Коментарии
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);