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
설명
w32api_invoke_function() tries to find the previously registered function, passing the parameters you provided.
인수
- funcname
-
The function name.
- argument
-
Any of the arguments can be of any PHP type or w32api_deftype() defined type, as needed.
- ...
-
반환값
The return type is the one you set when you registered the function, the value is the one returned by the function itself.
주의
Warning
이 함수는 실험적입니다. 이 함수의 작동, 함수의 이름, 그리고 관련된 모든 문서는 이후의 PHP 릴리즈에서 예고 없이 변경할 수 있습니다. 이 함수의 사용에 관한 것은 사용자 책임입니다.
w32api_invoke_function
ryan at wonko dot com
23-Apr-2002 03:01
23-Apr-2002 03:01
